(data: unknown, status = 200)
| 47 | } |
| 48 | |
| 49 | export function jsonResponse(data: unknown, status = 200): Response { |
| 50 | return new Response(JSON.stringify(data), { |
| 51 | status, |
| 52 | headers: { 'Content-Type': 'application/json' }, |
| 53 | }); |
| 54 | } |
| 55 | |
| 56 | export function sseResponse(events: Array<{ data: string }>): Response { |
| 57 | const body = events |
no outgoing calls
no test coverage detected