lib/routes.js
function addAuthenticationRoutes(router) {
  const authRouter = express.Router();

  authRouter.use(require('body-parser').json({ strict: true, type: 'application/json', limit: '50mb' }));
  authRouter.use(require('body-parser').text({ type: 'text/*' }));
  amphoraAuth.addRoutes(authRouter);
  router.use('/_users', authRouter);
}
function addAuthenticationRoutes(router) {
  const authRouter = express.Router();

  authRouter.use(require('body-parser').json({ strict: true, type: 'application/json', limit: '50mb' }));
  authRouter.use(require('body-parser').text({ type: 'text/*' }));
  amphoraAuth.addRoutes(authRouter);
  router.use('/_users', authRouter);
}
function addAuthenticationRoutes ( router ) { const authRouter = express . Router ( ) ; authRouter . use ( require ( 'body-parser' ) . json ( { strict : true , type : 'application/json' , limit : '50mb' } ) ) ; authRouter . use ( require ( 'body-parser' ) . text ( { type : 'text/*' } ) ) ; amphoraAuth . addRoutes ( authRouter ) ; router . use ( '/_users' , authRouter ) ; }
Add routes from the authentication module that
can be passed in. If no module is passed in at
instantiation time then use the default auth module.

@param {express.Router} router
Add routes from the authentication module that can be passed in . If no module is passed in at instantiation time then use the default auth module .