(status: number, payload: Record<string, unknown>)
| 19 | }) |
| 20 | |
| 21 | function jsonError(status: number, payload: Record<string, unknown>) { |
| 22 | return new Response(JSON.stringify(payload), { |
| 23 | status, |
| 24 | headers: { 'content-type': 'application/json' }, |
| 25 | }) |
| 26 | } |
| 27 | |
| 28 | export const Route = createFileRoute('/api/generate/speech')({ |
| 29 | server: { |
no outgoing calls
no test coverage detected