Skip to content

Commit

Permalink
health check endoint added for load balancer set up
Browse files Browse the repository at this point in the history
  • Loading branch information
brok3turtl3 committed Apr 26, 2024
1 parent b0e4550 commit df8ac93
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 df8ac93

Please sign in to comment.