fix Payload Too Large for convert file api

This commit is contained in:
oom 2024-06-28 10:39:52 +07:00
parent 96d732bb96
commit ba8175204c
9 changed files with 169 additions and 157 deletions

2
app.ts
View file

@ -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) => {