(requestUrl: string, webRequest: Request)
| 44 | }); |
| 45 | |
| 46 | const oauthClientMetadataResponse = (requestUrl: string, webRequest: Request): Response => |
| 47 | new Response( |
| 48 | JSON.stringify( |
| 49 | oauthClientIdMetadataDocumentFromRequest({ |
| 50 | requestUrl, |
| 51 | webRequest, |
| 52 | mountPrefix: "/api", |
| 53 | }), |
| 54 | ), |
| 55 | { |
| 56 | headers: { |
| 57 | "content-type": "application/json", |
| 58 | "cache-control": "public, max-age=300", |
| 59 | }, |
| 60 | }, |
| 61 | ); |
| 62 | |
| 63 | function collectStaticRoutes(dir: string, prefix = ""): Record<string, StaticHandler> { |
| 64 | const routes: Record<string, StaticHandler> = {}; |
no test coverage detected