We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0bc715 commit 8d663d4Copy full SHA for 8d663d4
package.json
@@ -48,6 +48,7 @@
48
"http-aws-es": "^1.1.3",
49
"joi": "^8.0.5",
50
"lodash": "^4.16.4",
51
+ "method-override": "^2.3.9",
52
"pg": "^4.5.5",
53
"pg-native": "^1.10.0",
54
"sequelize": "^3.23.0",
src/app.js
@@ -1,4 +1,5 @@
1
import express from 'express';
2
+import methodOverride from 'method-override'
3
import _ from 'lodash';
4
import bodyParser from 'body-parser';
5
import config from 'config';
@@ -11,6 +12,9 @@ import analytics from './events/analytics';
11
12
13
const app = express();
14
15
+// allows overriding HTTP Method
16
+app.use(methodOverride('X-HTTP-Method-Override'))
17
+
18
// =======================
19
// configuration =========
20
0 commit comments