Add healthcheck route
This commit is contained in:
parent
bb013bf595
commit
e23a5dce99
@ -67,6 +67,11 @@ app.get('/:type(photo|video)/:key/:id', async (req, res) => {
|
|||||||
res.status(404).send()
|
res.status(404).send()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// Healthcheck
|
||||||
|
app.get('/healthcheck', (_req, res) => {
|
||||||
|
res.send('ok')
|
||||||
|
})
|
||||||
|
|
||||||
// Send a 404 for all other routes
|
// Send a 404 for all other routes
|
||||||
app.get('*', (req, res) => {
|
app.get('*', (req, res) => {
|
||||||
log('Invalid route ' + req.path)
|
log('Invalid route ' + req.path)
|
||||||
|
Loading…
Reference in New Issue
Block a user