From fb8b19959c5cd0cdd1b3c7fb494f3f36859f1543 Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Mon, 8 Jul 2013 16:57:40 -0400 Subject: [PATCH] moved one of the middlewares before app.use(app.router) --- src/webserver.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webserver.js b/src/webserver.js index f92646fce5..d188bdebc6 100644 --- a/src/webserver.js +++ b/src/webserver.js @@ -59,8 +59,6 @@ var express = require('express'), auth.initialize(app); - app.use(app.router); - app.use(function(req, res, next) { // Don't bother with session handling for API requests if (/^\/api\//.test(req.url)) return next(); @@ -74,6 +72,8 @@ var express = require('express'), next(); }); + + app.use(app.router); app.use(function(req, res, next) { res.status(404);