1
0
Fork 0
mirror of https://github.com/alangrainger/immich-public-proxy.git synced 2024-12-28 03:41:58 +00:00

Add healthcheck route

This commit is contained in:
Alan Grainger 2024-10-31 13:21:57 +01:00
parent bb013bf595
commit e23a5dce99

View file

@ -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)