feat: request increase body size limit to 1mb

This commit is contained in:
Ali BARIN
2023-01-29 12:29:56 +00:00
parent 85a3558074
commit 078ea24cd2
3 changed files with 7 additions and 0 deletions

View File

@@ -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;
},