From 9e030e764c76cfb4908747d0721f82255f164670 Mon Sep 17 00:00:00 2001 From: joseph le Date: Thu, 21 Sep 2023 15:34:44 +0700 Subject: [PATCH] add API monitor --- start/routes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start/routes.ts b/start/routes.ts index af2e12b..3b368b7 100644 --- a/start/routes.ts +++ b/start/routes.ts @@ -211,7 +211,7 @@ Route.get('/api/images/:filename', "ImagesController.getImage"); Route.get('/api/monitor', async ({ request, response }) => { try { - await Database.raw("SELECT 1") + console.log(await Database.raw("SELECT 1")) response.status(200).send("I'm fine!") } catch (error) { response.status(203).send("Can't connect to database!")