Change body limit from default, show help with context

This commit is contained in:
CncAnon 2023-08-29 13:03:11 +03:00
parent f13482d729
commit ab46422cb1
1 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,9 @@ require("dotenv").config();
const express = require('express');
const axios = require('axios');
const app = express();
app.use(express.json());
const bodyParser = require('body-parser');
app.use(bodyParser.json({ limit: '100mb' }));
app.use(bodyParser.urlencoded({limit: '100mb', extended: true}));
const API_TOKEN = process.env.API_TOKEN;