()
| 33 | } |
| 34 | |
| 35 | async function startServer () { |
| 36 | terminus(http.createServer(app), { |
| 37 | logger: console.log, |
| 38 | signal: 'SIGINT', |
| 39 | healthChecks: { |
| 40 | '/healthcheck': onHealthCheck |
| 41 | }, |
| 42 | onSignal |
| 43 | }).listen(3000) |
| 44 | } |
| 45 | |
| 46 | startServer() |
| 47 | .catch(err => console.error('connection error', err.stack)) |
no test coverage detected
searching dependent graphs…