Guest User

Untitled

a guest
Oct 17th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. let user = require('./model/user/user.route');
  2. let companyType = require('./model/masterCollections/companyType/companyType.route');
  3. let jobPosting = require('./model/jobPosting/jobPosting.route');
  4. let login = require('./model/login/login.local');
  5.  
  6.  
  7. module.exports = function(app) {
  8. app.use('/user', user);
  9. app.use('/companyType', companyType);
  10. app.use('/login', login.local);
  11. app.use('/jobs', jobPosting);
  12. }
  13.  
  14. let prefix = '/api/v1'
  15. app.use(prefix + '/user', user);
  16. app.use(prefix + '/companyType', companyType);
  17. app.use(prefix + '/login', login.local);
  18. app.use(prefix + '/jobs', jobPosting);
Add Comment
Please, Sign In to add comment