'use strict';

const userCtr = require('./../controllers/users.js');
const authentication = require('./../middleware/authentication');
const authorisation  = require('./../middleware/authorisation');

const userRoutes = (router) => {
  router
    .route('/users')
    .post(userCtr.create);
};

module.exports = userRoutes;

'use strict';

const userCtr        = require('./../controllers/users.js');
const userAuth       = require('./../controllers/authentication.js');
const authentication = require('./../middleware/authentication');
const authorisation  = require('./../middleware/authorisation');

const userRoutes = (router) => {
  router
    .route('/users')
    .post(userCtr.create);

  router.post('/users/login', userAuth.signin);
  router.post('/users/logout', userAuth.signout);
};

module.exports = userRoutes;

Add authentication controller to handle user authentication
Add authentication controller to handle user authentication
