| 44 | const CACHE_CONTROL = 'private, max-age=300'; |
| 45 | |
| 46 | export interface ApiResult { |
| 47 | body: unknown; |
| 48 | status?: number; |
| 49 | /** Omitted ⇒ src/index.ts keeps its `no-store` default. */ |
| 50 | cacheControl?: string; |
| 51 | } |
| 52 | |
| 53 | const fail = (error: string, status = 400): ApiResult => ({ body: { error }, status }); |
| 54 |
nothing calls this directly
no outgoing calls
no test coverage detected