From b1e93c4558c72e9977e967d9b77a9dfb5ecb3543 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Sun, 20 Jul 2014 14:53:29 -0400 Subject: [PATCH] fix for wrapper --- src/routes/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/index.js b/src/routes/index.js index ca0416fd30..814f15354a 100644 --- a/src/routes/index.js +++ b/src/routes/index.js @@ -161,7 +161,7 @@ module.exports = function(app, middleware) { relativePath = nconf.get('relative_path'); router.render = function() { - app.render.call(arguments); + app.render.apply(app, arguments); }; app.all(relativePath + '/api/*', middleware.updateLastOnlineTime, middleware.prepareAPI);