Advertisement
rodrigofbm

userRouter

Apr 18th, 2018
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module.exports = (application) => {
  2.     application.post('/auth/createUser', (req, res) => {
  3.         application.app.controllers.userController.createUser(application, req, res);
  4.     });
  5.     application.post('/auth/createUserInfos/:userId', (req, res) => {
  6.         application.app.controllers.userController.createUserInfos(application, req, res);
  7.     });
  8.  
  9.     application.get('/auth/getUserInfos/:userId', (req, res) => {
  10.         application.app.controllers.userController.getUserInfos(application, req, res);
  11.     });
  12.  
  13.     application.post('/auth/authUser', (req, res) => {
  14.         application.app.controllers.userController.authUser(application, req, res);
  15.     });
  16.  
  17.    
  18.  
  19.    
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement