diff --git a/src/controllers/admin.js b/src/controllers/admin.js index e3c0e615a7..365d4fa6b8 100644 --- a/src/controllers/admin.js +++ b/src/controllers/admin.js @@ -119,7 +119,15 @@ function getStatsForSet(set, field, callback) { } adminController.categories.get = function(req, res, next) { + categories.getCategoryData(req.params.category_id, function(err, category) { + if (err) { + return next(err); + } + res.render('admin/manage/category', { + category: category + }); + }); }; adminController.categories.getAll = function(req, res, next) { diff --git a/src/views/admin/manage/category.tpl b/src/views/admin/manage/category.tpl new file mode 100644 index 0000000000..2fb9d362bb --- /dev/null +++ b/src/views/admin/manage/category.tpl @@ -0,0 +1 @@ +test {category.cid} \ No newline at end of file diff --git a/src/views/config.json b/src/views/config.json index 70ba11b3af..674719366d 100644 --- a/src/views/config.json +++ b/src/views/config.json @@ -2,6 +2,8 @@ "custom_mapping": { "^\/?$": "home", "^admin?$": "admin/general/dashboard", + "^admin/manage/categories/[\\d]+$": "admin/manage/category", + "^users/sort-posts": "users", "^users/latest": "users", "^users/sort-reputation": "users",