Advertisement
MrZep

app.js

Apr 23rd, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const express = require('express');
  2. const bodyParser = require('body-parser');
  3. const auth = require('./routers/auth.js');
  4. const reg = require('./routers/reg.js');
  5.  
  6. const app = express();
  7.  
  8. app.use(bodyParser.json);
  9. app.use('/auth', auth);
  10. app.use('/reg', reg);
  11.  
  12. app.listen(8080);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement