Skip to content

Commit

Permalink
Configure middleware during app startup
Browse files Browse the repository at this point in the history
  • Loading branch information
lmarkus committed Nov 23, 2013
1 parent ea40b8a commit c7346ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Expand Up @@ -2,6 +2,7 @@


var kraken = require('kraken-js'),
millionsServed = require('./lib/millionsServed'),
app = {};


Expand All @@ -17,7 +18,7 @@ app.requestStart = function requestStart(server) {


app.requestBeforeRoute = function requestBeforeRoute(server) {
// Fired before routing occurs
server.use(millionsServed());
};


Expand Down

0 comments on commit c7346ce

Please sign in to comment.