helpers.setupAdminPageRoute

v1.18.x
barisusakli 8 years ago
parent 1e137636c9
commit 274448426d

@ -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;
Loading…
Cancel
Save