u
This commit is contained in:
@@ -39,6 +39,8 @@ export function register(app, basePath = '') {
|
||||
* error:
|
||||
* type: string
|
||||
*/
|
||||
// #region GET /health
|
||||
|
||||
app.get(`${basePath}/health`, async (_request, response) => {
|
||||
try {
|
||||
await ensureConnection();
|
||||
@@ -47,4 +49,6 @@ export function register(app, basePath = '') {
|
||||
response.status(503).json({ ok: false, error: error.message });
|
||||
}
|
||||
});
|
||||
|
||||
// #endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user