Skip to content

Commit

Permalink
Add authorized health apu endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio1988 authored Dec 11, 2023
1 parent 50c5561 commit 77f6392
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

0 comments on commit 77f6392

Please sign in to comment.