Skip to content

Commit

Permalink
Merge pull request #88 from Code-Hammers/health-check
Browse files Browse the repository at this point in the history
health check endoint added for load balancer set up
  • Loading branch information
brok3turtl3 authored Apr 26, 2024
2 parents b0e4550 + df8ac93 commit 99d58aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 99d58aa

Please sign in to comment.