Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
import
{ Elysia } from
"elysia"
;
2
import
{ ApiErrors } from
"../lib/errors"
;
3
4
export
const
MAX_BODY_SIZE_BYTES = 1024 * 1024;
// 1 MB
Callers
nothing calls this directly
Calls
2
enforceBodyLimit
Function · 0.85
get
Method · 0.45
Tested by
no test coverage detected