aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.ts b/server.ts
index c19ec4f19..56a4a0c44 100644
--- a/server.ts
+++ b/server.ts
@@ -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
91app.use(bodyParser.urlencoded({ extended: false }))
91app.use(bodyParser.json({ 92app.use(bodyParser.json({
92 type: [ 'application/json', 'application/*+json' ], 93 type: [ 'application/json', 'application/*+json' ],
93 limit: '500kb' 94 limit: '500kb'
94})) 95}))
95app.use(bodyParser.urlencoded({ extended: false }))
96 96
97// ----------- Tracker ----------- 97// ----------- Tracker -----------
98 98