SillyTavern/src/express-common.js
2023-12-04 19:12:41 +02:00

8 lines
296 B
JavaScript

const express = require('express');
// Instantiate parser middleware here with application-level size limits
const jsonParser = express.json({ limit: '200mb' });
const urlencodedParser = express.urlencoded({ extended: true, limit: '200mb' });
module.exports = { jsonParser, urlencodedParser };