Skip to content

Commit

Permalink
Added server status API endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
growupanand committed Dec 30, 2023
1 parent 818e286 commit dd20e7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ export const ALLOWED_PATHS_WITHOUT_USER_LOGGED_IN = [
path: "/auth/getAccessToken",
method: ["POST"],
},
{
path: "/status",
method: ["GET"],
},
];

/** when server start, default roles will be loaded automatically in Database */
Expand Down
1 change: 1 addition & 0 deletions backend/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ router.use(
organizationMiddleware,
require("./insuranceCompany")
);
router.use("/status", require("./status"));

export default router;

0 comments on commit dd20e7e

Please sign in to comment.