MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / body-limit.ts

File body-limit.ts

apps/api/src/middleware/body-limit.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { Elysia } from "elysia";
2import { ApiErrors } from "../lib/errors";
3
4export const MAX_BODY_SIZE_BYTES = 1024 * 1024; // 1 MB

Callers

nothing calls this directly

Calls 2

enforceBodyLimitFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected