(requestUrl: string, webRequest: Request)
| 57 | ); |
| 58 | |
| 59 | const oauthClientMetadataResponse = (requestUrl: string, webRequest: Request): Response => |
| 60 | new Response( |
| 61 | JSON.stringify( |
| 62 | oauthClientIdMetadataDocumentFromRequest({ |
| 63 | requestUrl, |
| 64 | webRequest, |
| 65 | mountPrefix: "/api", |
| 66 | }), |
| 67 | ), |
| 68 | { |
| 69 | headers: { |
| 70 | "content-type": "application/json", |
| 71 | "cache-control": "public, max-age=300", |
| 72 | }, |
| 73 | }, |
| 74 | ); |
| 75 | |
| 76 | /** |
| 77 | * Vite plugin that forwards /api and /mcp requests to the Effect handlers |
no test coverage detected