fix(server): bodyLimit for each endpoints
This commit is contained in:
		@@ -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();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user