From 35d23801bef54e41db37b3faa8c23033866242bb Mon Sep 17 00:00:00 2001 From: Samir Talwar Date: Mon, 25 Sep 2023 15:32:50 +0200 Subject: [PATCH] Add a health check for the configuration server that always passes. This allows us to use the `check-health` command for the configuration server too. --- rust-connector-sdk/src/default_main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rust-connector-sdk/src/default_main.rs b/rust-connector-sdk/src/default_main.rs index b2cb5363..d21f4c77 100644 --- a/rust-connector-sdk/src/default_main.rs +++ b/rust-connector-sdk/src/default_main.rs @@ -494,6 +494,7 @@ where .route("/", get(get_empty::).post(post_update::)) .route("/schema", get(get_config_schema::)) .route("/validate", post(post_validate::)) + .route("/health", get(|| async {})) .layer(cors); axum::Server::bind(&address)