From 274448426d40a3566109c0f07cee7d63e55f68a1 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 12 Jan 2017 14:31:35 +0300 Subject: [PATCH] helpers.setupAdminPageRoute --- src/routes/helpers.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/routes/helpers.js b/src/routes/helpers.js index 052d99292c..3f3ff06472 100644 --- a/src/routes/helpers.js +++ b/src/routes/helpers.js @@ -9,4 +9,10 @@ helpers.setupPageRoute = function (router, name, middleware, middlewares, contro 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; \ No newline at end of file