Skip to content

Commit

Permalink
Add health check route (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
steebchen authored Sep 3, 2024
1 parent 5b44d60 commit 2140ee0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions prover/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,12 @@ pub async fn start(args: Args) -> Result<(), ProverError> {
sse_tx: Arc::new(Mutex::new(sse_tx)),
};

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

let app = Router::new()
.route("/", get(ok_handler))
.route("/verify", post(root))
.route("/get-job/:id", get(get_job))
.route("/sse", get(sse_handler))
Expand Down

0 comments on commit 2140ee0

Please sign in to comment.