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:
parent
bb013bf595
commit
e23a5dce99
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue