(res: any, policy?: string, nonce?: string)
| 32 | |
| 33 | // eslint-disable-next-line @typescript-eslint/no-explicit-any |
| 34 | function render(res: any, policy?: string, nonce?: string) { |
| 35 | if (policy) { |
| 36 | res.header('Content-Security-Policy', policy); |
| 37 | } |
| 38 | res.header('content-type', 'text/html'); |
| 39 | res.end(renderHtml(policy, nonce)); |
| 40 | } |
| 41 | |
| 42 | server.get('/', (req, res) => { |
| 43 | render(res); |
no test coverage detected
searching dependent graphs…