diff options
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -76,7 +76,10 @@ app.use(morgan('combined', { | |||
76 | stream: { write: logger.info } | 76 | stream: { write: logger.info } |
77 | })) | 77 | })) |
78 | // For body requests | 78 | // For body requests |
79 | app.use(bodyParser.json({ limit: '500kb' })) | 79 | app.use(bodyParser.json({ |
80 | type: 'application/*+json', | ||
81 | limit: '500kb' | ||
82 | })) | ||
80 | app.use(bodyParser.urlencoded({ extended: false })) | 83 | app.use(bodyParser.urlencoded({ extended: false })) |
81 | 84 | ||
82 | // ----------- Tracker ----------- | 85 | // ----------- Tracker ----------- |