feat: request increase body size limit to 1mb
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import express, { Router } from 'express';
|
||||
import multer from 'multer';
|
||||
import { IRequest } from '@automatisch/types';
|
||||
import appConfig from '../config/app';
|
||||
import webhookHandler from '../controllers/webhooks/handler';
|
||||
|
||||
const router = Router();
|
||||
@@ -9,6 +10,7 @@ const upload = multer();
|
||||
router.use(upload.none());
|
||||
|
||||
router.use(express.text({
|
||||
limit: appConfig.requestBodySizeLimit,
|
||||
verify(req, res, buf) {
|
||||
(req as IRequest).rawBody = buf;
|
||||
},
|
||||
|
Reference in New Issue
Block a user