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