21 lines
439 B
JavaScript
21 lines
439 B
JavaScript
'use strict';
|
|
|
|
var Controllers = {};
|
|
|
|
Controllers.renderAdminPage = function (req, res, next) {
|
|
/*
|
|
Make sure the route matches your path to template exactly.
|
|
|
|
If your route was:
|
|
myforum.com/some/complex/route/
|
|
your template should be:
|
|
templates/some/complex/route.tpl
|
|
and you would render it like so:
|
|
res.render('some/complex/route');
|
|
*/
|
|
|
|
res.render('admin/plugins/chats-global', {});
|
|
};
|
|
|
|
module.exports = Controllers;
|