lib/routerMounter.js
Function exports
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(router, moduleName, optionalNamespace) {
// all routes for the particular module will be wrapped with namespace
let ns = router.ns(typeof optionalNamespace === "string" ? optionalNamespace : `/${moduleName.toLowerCase()}`);
function middleHandler(method) {