mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-03 09:18:58 +09:00
fix(server): bodyLimit for each endpoints
This commit is contained in:
parent
13c22b8fb0
commit
af9e742e71
@ -93,7 +93,7 @@ export class ApiServerService {
|
|||||||
Params: { endpoint: string; },
|
Params: { endpoint: string; },
|
||||||
Body: Record<string, unknown>,
|
Body: Record<string, unknown>,
|
||||||
Querystring: 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) {
|
if (request.method === 'GET' && !endpoint.meta.allowGet) {
|
||||||
reply.code(405);
|
reply.code(405);
|
||||||
reply.send();
|
reply.send();
|
||||||
|
Loading…
Reference in New Issue
Block a user