diff options
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -88,11 +88,11 @@ app.use(morgan('combined', { | |||
88 | stream: { write: logger.info.bind(logger) } | 88 | stream: { write: logger.info.bind(logger) } |
89 | })) | 89 | })) |
90 | // For body requests | 90 | // For body requests |
91 | app.use(bodyParser.urlencoded({ extended: false })) | ||
91 | app.use(bodyParser.json({ | 92 | app.use(bodyParser.json({ |
92 | type: [ 'application/json', 'application/*+json' ], | 93 | type: [ 'application/json', 'application/*+json' ], |
93 | limit: '500kb' | 94 | limit: '500kb' |
94 | })) | 95 | })) |
95 | app.use(bodyParser.urlencoded({ extended: false })) | ||
96 | 96 | ||
97 | // ----------- Tracker ----------- | 97 | // ----------- Tracker ----------- |
98 | 98 | ||