Skip to content

Commit

Permalink
ci: add root route to portal API
Browse files Browse the repository at this point in the history
  • Loading branch information
manekinekko committed Mar 15, 2024
1 parent ac0ec26 commit bfee5b4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ import { getListingById, getListings } from "./functions/listings";
import { openApi } from "./functions/openapi";
import { postCheckout } from "./functions/checkout";

// This route is used by nightly builds as a health check
app.get("get-root", {
route: "/",
authLevel: "anonymous",
handler: async () => {
return {
status: 200,
body: "Welcome to Contoso Real Estate API",
};
}
});

//#region User Function
app.get("get-users", {
route: "users",
Expand Down

0 comments on commit bfee5b4

Please sign in to comment.