From 5f2759baf6f68d8831aad126e903bf0a6b44235a Mon Sep 17 00:00:00 2001 From: Ritesh Ghosh Date: Sat, 19 Aug 2023 22:49:04 +0530 Subject: [PATCH] fix(healthcheck): fixed `/health` route response status --- src/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.ts b/src/server.ts index 494c058..a8fdae4 100644 --- a/src/server.ts +++ b/src/server.ts @@ -17,7 +17,7 @@ app.use(morgan("dev")); app.use(ratelimit); app.use(express.static(resolve(__dirname, "..", "public"))); -app.get("/health", (_, res) => res.sendStatus(400)); +app.get("/health", (_, res) => res.sendStatus(200)); app.use("/anime", animeRouter); app.use(notFoundHandler);