Skip to content

Commit

Permalink
Add methodOverride Middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
lmarkus committed Dec 5, 2013
1 parent f37f1f6 commit db2b8fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
var kraken = require('kraken-js'),
db = require('./lib/database'),
language = require('./lib/language'),
express = require('express'),
app = {};


Expand All @@ -22,6 +23,7 @@ app.requestStart = function requestStart(server) {

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

Expand Down

0 comments on commit db2b8fe

Please sign in to comment.