1
Fork 0
mirror of https://github.com/diced/zipline.git synced 2025-04-11 23:31:17 -05:00

Merge branch 'trunk' into Configure-Server-Settings-with-ENV-Vars

This commit is contained in:
dicedtomato 2025-03-29 22:30:35 -07:00 committed by GitHub
commit 6e57d3140d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,6 +31,8 @@ export default fastifyPlugin(
PATH,
{
preHandler: [userMiddleware, administratorMiddleware],
// 24gb, just in case
bodyLimit: 24 * 1024 * 1024 * 1024,
},
async (req, res) => {
if (req.user.role !== 'SUPERADMIN') return res.forbidden('not super admin');