Permalink
Browse files

Fix middleware order

  • Loading branch information...
Soarez committed Jan 18, 2013
1 parent 6e8e0d2 commit fe06aacfadc8e3d6f25361fede3321449ecfa5b2
Showing with 2 additions and 1 deletion.
  1. +2 −1 app.js
View
3 app.js
@@ -25,12 +25,13 @@ var App = function App(options) {
req.Recipe = Recipe.isolateInCollection("recipes-" + sandboxId);
next();
});
- server.use(server.router);
server.use(express.static(__dirname + '/public'));
server.set('layout', 'layouts/application');
server.set('view engine', 'ejs');
server.set('views', __dirname + '/app/views');
server.use(expressLayouts);
+
+ server.use(server.router);
});
server.get('/', function (req, res) {

0 comments on commit fe06aac

Please sign in to comment.