From 81a41a7f31f97a8124a26e733267b02cb390fb0e Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Mon, 30 Sep 2024 00:54:49 -0600 Subject: [PATCH] refactor: update healtcheck --- apps/api/src/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/api/src/index.ts b/apps/api/src/index.ts index 6ca054de5..c9b28d04e 100644 --- a/apps/api/src/index.ts +++ b/apps/api/src/index.ts @@ -31,6 +31,11 @@ app.post("/publish", async (c) => { return c.json({ message: `Despliegue encolado para el usuario ${userId}` }); }); + +app.get("/health", async (c) => { + return c.json({ status: "ok" }); +}); + // await redisClient.connect(); // await redisClient.flushAll();