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