Skip to content

Commit

Permalink
Add healthcheck endpoint to the proof data handler
Browse files Browse the repository at this point in the history
  • Loading branch information
pbeza committed Jun 19, 2024
1 parent 2c0a00a commit e29c022
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion core/node/proof_data_handler/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
use std::{net::SocketAddr, sync::Arc};

use anyhow::Context as _;
use axum::{extract::Path, routing::post, Json, Router};
use axum::{
extract::{Extension, Path},
routing::{get, post},
Json, Router,
};
use request_processor::RequestProcessor;
use tee_request_processor::TeeRequestProcessor;
use tokio::sync::watch;
Expand Down Expand Up @@ -81,6 +85,10 @@ fn create_proof_processing_router(
.await
},
),
)
.route(
"/health",
get(|_: Extension<()>| async { Ok::<_, ()>("Service is up and running") }),
);

if config.tee_support {
Expand Down

0 comments on commit e29c022

Please sign in to comment.