From df8ac931c52517cdaec836fe62b67973046f0006 Mon Sep 17 00:00:00 2001 From: Sean Date: Fri, 26 Apr 2024 08:29:25 -0400 Subject: [PATCH] health check endoint added for load balancer set up --- server/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/index.ts b/server/index.ts index 18d862d..7e365a2 100644 --- a/server/index.ts +++ b/server/index.ts @@ -21,6 +21,10 @@ app.use(cookieParser()); connectDB(); +app.get("/health", (req: Request, res: Response) => { + res.status(200).send("OK"); +}); + app.use("/api/users", userRoutes); app.use("/api/profiles", profileRoutes); app.use("/api/auth", authRoutes);