|
|
@ -9,4 +9,10 @@ helpers.setupPageRoute = function (router, name, middleware, middlewares, contro
|
|
|
|
router.get('/api' + name, middlewares, controller);
|
|
|
|
router.get('/api' + name, middlewares, controller);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
helpers.setupAdminPageRoute = function (router, name, middleware, middlewares, controller) {
|
|
|
|
|
|
|
|
router.get(name, middleware.admin.buildHeader, middlewares, controller);
|
|
|
|
|
|
|
|
router.get('/api' + name, middlewares, controller);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = helpers;
|
|
|
|
module.exports = helpers;
|