updated regex to match admin route with no trailing slash

v1.18.x
Julian Lam 11 years ago
parent 43432e8bbb
commit fa6daa37eb

@ -163,8 +163,7 @@ module.exports = function(app, middleware) {
app.all(relativePath + '/api/?*', middleware.updateLastOnlineTime, middleware.prepareAPI);
app.all(relativePath + '/api/admin/*', middleware.admin.isAdmin, middleware.prepareAPI);
app.all(relativePath + '/admin/*', middleware.admin.isAdmin);
app.get(relativePath + '/admin', middleware.admin.isAdmin);
app.all(relativePath + '/admin/?*', middleware.admin.isAdmin);
adminRoutes(router, middleware, controllers);
metaRoutes(router, middleware, controllers);

Loading…
Cancel
Save