( request: Request, env: Env, ctx: ExecutionContext, )
| 9 | |
| 10 | export default { |
| 11 | async fetch( |
| 12 | request: Request, |
| 13 | env: Env, |
| 14 | ctx: ExecutionContext, |
| 15 | ): Promise<Response> { |
| 16 | return await router |
| 17 | .handle(request, env, ctx) |
| 18 | .catch((error_) => { |
| 19 | console.error(error_); |
| 20 | return error(error_); |
| 21 | }) |
| 22 | .then(corsify); |
| 23 | }, |
| 24 | |
| 25 | // This is a daily scheduled event to update the metadata. |
| 26 | async scheduled( |
no test coverage detected