Expose root healthcheck endpoint
This commit is contained in:
@@ -66,7 +66,7 @@ app.get('/api/health', async (_req, res) => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get('/api/healthcheck', async (_req, res) => {
|
app.get(['/healthcheck', '/api/healthcheck'], async (_req, res) => {
|
||||||
try {
|
try {
|
||||||
await Promise.race([
|
await Promise.race([
|
||||||
db.raw('select 1'),
|
db.raw('select 1'),
|
||||||
|
|||||||
Reference in New Issue
Block a user