fix Payload Too Large for convert file api
This commit is contained in:
parent
96d732bb96
commit
ba8175204c
9 changed files with 169 additions and 157 deletions
2
app.ts
2
app.ts
|
|
@ -15,7 +15,7 @@ const app: Express = express()
|
|||
const port: number = Number(process.env.PORT) || 80;
|
||||
app.use(cors());
|
||||
app.use(express.json({ limit: "200mb" })); //‘application/json’
|
||||
app.use(express.raw()); //‘application/octet-stream’
|
||||
app.use(express.raw({ limit: "200mb" })); //‘application/octet-stream’
|
||||
app.use(express.urlencoded({ extended: true, limit: "200mb" }));
|
||||
app.use("/swagger", swaggerUi.serve, swaggerUi.setup(swaggerspecs,{ explorer: true }));
|
||||
app.get('/', (req: Request, res: Response) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue