app.js 356 B

1234567891011121314
  1. const userApi = require('./api/userApi');
  2. const fs = require('fs');
  3. const path = require('path');
  4. const bodyParser = require('body-parser');
  5. const express = require('express');
  6. const app = express();
  7. app.use(bodyParser.json());
  8. app.use(bodyParser.urlencoded())
  9. app.use('/api/user', userApi);
  10. app.listen(3000);
  11. console.log('success listen at port: 3000')