1234567891011121314 |
- const userApi = require('./api/userApi');
- const fs = require('fs');
- const path = require('path');
- const bodyParser = require('body-parser');
- const express = require('express');
- const app = express();
- app.use(bodyParser.json());
- app.use(bodyParser.urlencoded())
- app.use('/api/user', userApi);
- app.listen(3000);
- console.log('success listen at port: 3000')
|