Skip to content

Node.js based forum software built for the modern web

fix: add missing render function

Barış Soner Uşaklıcb7c2d8c28a3
diff --git a/src/routes/index.js b/src/routes/index.js
index 71d4ac63b2..57186e4e04 100644
--- a/src/routes/index.js
+++ b/src/routes/index.js
@@ -88,7 +88,9 @@ function groupRoutes(app, middleware, controllers) {
module.exports = function (app, middleware, callback) {
const router = express.Router();
-
+ router.render = function () {
+ app.render.apply(app, arguments);
+ };
var relativePath = nconf.get('relative_path');
var ensureLoggedIn = require('connect-ensure-login');