Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix middleware order

  • Loading branch information...
commit fe06aacfadc8e3d6f25361fede3321449ecfa5b2 1 parent 6e8e0d2
Igor Soarez authored January 18, 2013

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  app.js
3  app.js
@@ -25,12 +25,13 @@ var App = function App(options) {
25 25
       req.Recipe = Recipe.isolateInCollection("recipes-" + sandboxId);
26 26
       next();
27 27
     });
28  
-    server.use(server.router);
29 28
     server.use(express.static(__dirname + '/public'));
30 29
     server.set('layout', 'layouts/application');
31 30
     server.set('view engine', 'ejs');
32 31
     server.set('views', __dirname + '/app/views');
33 32
     server.use(expressLayouts);
  33
+
  34
+    server.use(server.router);
34 35
   });
35 36
 
36 37
   server.get('/', function (req, res) {

0 notes on commit fe06aac

Please sign in to comment.
Something went wrong with that request. Please try again.