Skip to content

Commit

Permalink
feat(server): add static healthcheck response on root (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
steebchen authored Jul 23, 2024
1 parent 74810ac commit 390a2b3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions prover/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,15 @@ pub async fn start(args: Args) -> Result<(), ServerError> {
authorizer,
};

async fn ok_handler() -> &'static str {
"OK"
}

let ok_router = Router::new().route("/", axum::routing::get(ok_handler));

// Create a regular axum app.
let app = Router::new()
.nest("/", ok_router)
.nest("/", auth::auth(&state))
.nest("/prove", prove::router(&state))
.layer((
Expand Down

0 comments on commit 390a2b3

Please sign in to comment.