(params: {
req: http.IncomingMessage;
res: http.ServerResponse;
authorize: AuxiliaryHttpAuthorizer;
token: string;
})
| 42 | }) => Promise<{ tenantId?: string } | null>; |
| 43 | |
| 44 | export function tryHandleUploadHttpRoute(params: { |
| 45 | req: http.IncomingMessage; |
| 46 | res: http.ServerResponse; |
| 47 | authorize: AuxiliaryHttpAuthorizer; |
| 48 | token: string; |
| 49 | }): boolean { |
| 50 | const { req, res, authorize, token } = params; |
| 51 | const route = resolveUploadHttpRoute(req); |
| 52 | if (route === null) return false; |
| 53 | |
| 54 | void handleUploadHttpRoute(route, req, res, authorize, token); |
| 55 | return true; |
| 56 | } |
| 57 | |
| 58 | async function handleUploadHttpRoute( |
| 59 | route: UploadHttpRoute, |
no test coverage detected