Skip to content
Snippets Groups Projects
Unverified Commit c09f77d5 authored by BITARD Michaël's avatar BITARD Michaël Committed by GitHub
Browse files

fix(api): les utilisateurs peuvent envoyer des gros titres (#639)

parent 5ac3ae3d
Branches
Tags
Loading
......@@ -81,7 +81,7 @@ databaseInit(pool).then(() => {
res.write(`data: ${process.env.APPLICATION_VERSION}\n\n`)
res.flush()
})
app.use(express.urlencoded({ extended: true }), express.json(), restWithPool(pool))
app.use(express.urlencoded({ extended: true }), express.json({ limit: '5mb' }), restWithPool(pool))
app.use('/televersement', uploadAllowedMiddleware, restUpload())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment