diff --git a/src/main.rs b/src/main.rs index 8674800..9f16820 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,7 +8,7 @@ use async_graphql_axum::{GraphQLRequest, GraphQLResponse}; use axum::{ extract::State, - http::header::HeaderMap, + http::{header::HeaderMap, StatusCode}, response::{self, IntoResponse}, routing::{get, post}, Router, Server, @@ -195,6 +195,7 @@ async fn start_service() { let graphiql = Router::new() .route("/", get(graphiql).post(graphql_handler)) + .route("/health", get(StatusCode::OK)) .with_state(schema); let dapr_router = build_dapr_router(db_client).await; let app = Router::new().merge(graphiql).merge(dapr_router);