Skip to content
Snippets Groups Projects
Commit af9e742e authored by syuilo's avatar syuilo
Browse files

fix(server): bodyLimit for each endpoints

parent 13c22b8f
No related branches found
No related tags found
No related merge requests found
......@@ -93,7 +93,7 @@ export class ApiServerService {
Params: { endpoint: string; },
Body: Record<string, unknown>,
Querystring: Record<string, unknown>,
}>('/' + endpoint.name, (request, reply) => {
}>('/' + endpoint.name, { bodyLimit: 1024 * 32 }, (request, reply) => {
if (request.method === 'GET' && !endpoint.meta.allowGet) {
reply.code(405);
reply.send();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment