* Send error response.
(res: ServerResponse, status: number, message: string)
| 206 | * Send error response. |
| 207 | */ |
| 208 | function sendError(res: ServerResponse, status: number, message: string): void { |
| 209 | sendJson(res, status, { error: message }); |
| 210 | } |
| 211 | |
| 212 | /** |
| 213 | * Handle CORS preflight. |
no test coverage detected
searching dependent graphs…