cleaned up admin template mapping

v1.18.x
Julian Lam 12 years ago
parent 278f9bfc03
commit bd1e95b655

@ -1,24 +1,20 @@
{ {
"custom_mapping": { "custom_mapping": {
"admin/testing/categories.*": "admin/testing/categories", "^admin/testing/categories.*": "admin/testing/categories",
"admin/topics.*": "admin/topics", "^admin/topics.*": "admin/topics",
"admin/categories.*": "admin/categories", "^admin/categories.*": "admin/categories",
"admin/users.*": "admin/users", "^admin/users.*": "admin/users",
"admin/redis.*": "admin/redis", "^admin/redis.*": "admin/redis",
"admin/index.*": "admin/index", "^admin/index.*": "admin/index",
"admin/themes.*": "admin/themes", "^admin/themes.*": "admin/themes",
"admin/plugins.*": "admin/plugins", "^admin/plugins.*": "admin/plugins",
"^admin/settings.*": "admin/settings", "^admin/settings.*": "admin/settings",
"admin/twitter.*": "admin/twitter", "^admin/twitter.*": "admin/twitter",
"admin/facebook.*": "admin/facebook", "^admin/facebook.*": "admin/facebook",
"admin/logger.*": "admin/logger", "^admin/logger.*": "admin/logger",
"admin/gplus.*": "admin/gplus", "^admin/gplus.*": "admin/gplus",
"admin/motd/?$": "admin/motd", "^admin/motd/?$": "admin/motd",
"admin/groups/?$": "admin/groups", "^admin/groups/?$": "admin/groups",
"install/?$": "install/mail",
"install/mail/?": "install/mail",
"install/social/?": "install/social",
"install/privileges/?": "install/privileges",
"users/sort-posts": "users", "users/sort-posts": "users",
"users/latest": "users", "users/latest": "users",
"users/sort-reputation": "users", "users/sort-reputation": "users",

@ -30,9 +30,9 @@ var user = require('./../user.js'),
(function () { (function () {
var routes = [ var routes = [
'categories/active', 'categories/disabled', 'users', 'topics', 'settings', 'themes', 'categories/active', 'categories/disabled', 'users', 'topics', 'settings', 'themes',
'twitter', 'facebook', 'gplus', 'redis', 'motd', 'groups','logger', 'twitter', 'facebook', 'gplus', 'redis', 'motd', 'groups', 'plugins', 'logger',
'users/latest', 'users/sort-posts', 'users/sort-reputation', 'users/latest', 'users/sort-posts', 'users/sort-reputation',
'users/search', 'plugins' 'users/search'
]; ];
for (var i = 0, ii = routes.length; i < ii; i++) { for (var i = 0, ii = routes.length; i < ii; i++) {

Loading…
Cancel
Save