MCPcopy Create free account
hub / github.com/agegr/pi-web / parseFileRequestType

Function parseFileRequestType

app/api/files/[...path]/route.ts:72–74  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

70}
71
72function parseFileRequestType(value: string): FileRequestType | null {
73 return FILE_REQUEST_TYPE_SET.has(value) ? (value as FileRequestType) : null;
74}
75
76async function getUploadDirectory(segments: string[]): Promise<
77 { directory: string } | { response: NextResponse }

Callers 1

GETFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected