pfp size limit to 50mb

This commit is contained in:
2025-12-12 16:34:19 +01:00
parent b931e48bca
commit 1bc651958c
3 changed files with 7 additions and 4 deletions

View File

@@ -5,9 +5,9 @@ async function userRoutes(fastify: FastifyInstance) {
fastify.get('/me',controller.getMe);
fastify.post("/login", controller.login);
fastify.get('/users', controller.getAllUsers);
fastify.post('/users', controller.createUser);
fastify.post('/users', { bodyLimit: 1024 * 1024 * 50 }, controller.createUser);
fastify.get('/users/:id', controller.getUser);
fastify.put('/users/:id', controller.updateUser);
fastify.put('/users/:id', { bodyLimit: 1024 * 1024 * 50 }, controller.updateUser);
fastify.delete('/users/:id', controller.deleteUser);
fastify.get('/users/:id/integration', controller.getIntegrationStatus);
fastify.delete('/users/:id/integration', controller.disconnectAniList);