Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const express = require('express');
- const bodyParser = require('body-parser');
- const auth = require('./routers/auth.js');
- const reg = require('./routers/reg.js');
- const app = express();
- app.use(bodyParser.json);
- app.use('/auth', auth);
- app.use('/reg', reg);
- app.listen(8080);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement