From f3e15e614dff6354934e15e2b8f2fe6652fa4a06 Mon Sep 17 00:00:00 2001 From: Szepesi Tibor Date: Sun, 17 Nov 2024 17:15:44 +0100 Subject: [PATCH] Add basic liveness and readiness probe (#97) --- iam/handlers/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iam/handlers/mod.rs b/iam/handlers/mod.rs index 267339a..7f049ac 100644 --- a/iam/handlers/mod.rs +++ b/iam/handlers/mod.rs @@ -3,11 +3,13 @@ mod v1; mod well_known; use crate::shared::SharedTrait; -use axum::Router; +use axum::{routing::get, Router}; pub fn routes() -> Router { Router::new() .nest("/v1", v1::routes::()) .nest("/internal", internal::routes::()) .nest("/.well-known", well_known::routes::()) + .route("/ready", get(|| async {})) + .route("/live", get(|| async {})) }