diff --git a/src/index.ts b/src/index.ts index a0c65cf..7658590 100644 --- a/src/index.ts +++ b/src/index.ts @@ -67,6 +67,11 @@ app.get('/:type(photo|video)/:key/:id', async (req, res) => { res.status(404).send() }) +// Healthcheck +app.get('/healthcheck', (_req, res) => { + res.send('ok') +}) + // Send a 404 for all other routes app.get('*', (req, res) => { log('Invalid route ' + req.path)