Skip to content

Commit

Permalink
Merge pull request #212 from TurtIeSocks/Fabio1988-patch-1
Browse files Browse the repository at this point in the history
Add authorized health api endpoint
  • Loading branch information
TurtIeSocks authored Dec 11, 2023
2 parents 50c5561 + 77f6392 commit a6449cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ pub async fn start() -> io::Result<()> {
web::scope("/api").service(
web::scope("/v1")
.wrap(HttpAuthentication::with_fn(auth::public_validator))
.service(web::resource("/health").route(web::get().to(|| HttpResponse::Ok())))
.service(
web::scope("/calc")
.service(public::v1::calculate::bootstrap)
Expand Down

1 comment on commit a6449cd

@vercel
Copy link

@vercel vercel bot commented on a6449cd Dec 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

koji – ./

koji-git-main-turtiesocks.vercel.app
koji.vercel.app
koji-turtiesocks.vercel.app

Please sign in to comment.