mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
started moving admin mdw into middleware/admin.js; res.render post-processing to append admin footer/header
This commit is contained in:
@@ -103,10 +103,8 @@ module.exports = function(app, middleware, controllers) {
|
||||
}());
|
||||
|
||||
app.namespace('/admin', function () {
|
||||
app.get('/', function (req, res) {
|
||||
Admin.buildHeader(req, res, function(err, header) {
|
||||
res.send(header + app.create_route('admin/index') + templates['admin/footer']);
|
||||
});
|
||||
app.get('/', middleware.buildHeader, function(req, res, next) {
|
||||
res.render('admin/index', {});
|
||||
});
|
||||
|
||||
app.get('/index', function (req, res) {
|
||||
|
||||
Reference in New Issue
Block a user