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