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 8d663d4 commit 0131191Copy full SHA for 0131191
src/app.js
@@ -13,7 +13,9 @@ import analytics from './events/analytics';
13
const app = express();
14
15
// allows overriding HTTP Method
16
-app.use(methodOverride('X-HTTP-Method-Override'))
+// both arguments to the methodOverride are optional because they are the default
17
+// values, but we are specifying them to avoid any future change in defaults
18
+app.use(methodOverride('X-HTTP-Method-Override', {methods : ['POST'] }))
19
20
// =======================
21
// configuration =========
0 commit comments