mirror of https://gitgud.io/cncanon/sg-proxy.git
Change body limit from default, show help with context
This commit is contained in:
parent
f13482d729
commit
ab46422cb1
4
main.js
4
main.js
|
@ -3,7 +3,9 @@ require("dotenv").config();
|
||||||
const express = require('express');
|
const express = require('express');
|
||||||
const axios = require('axios');
|
const axios = require('axios');
|
||||||
const app = express();
|
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;
|
const API_TOKEN = process.env.API_TOKEN;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue