Skip to content

Commit

Permalink
Add basic liveness and readiness probe
Browse files Browse the repository at this point in the history
  • Loading branch information
smrtrfszm committed Nov 17, 2024
1 parent b9b2ba4 commit 9f53276
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion iam/handlers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ mod v1;
mod well_known;

use crate::shared::SharedTrait;
use axum::Router;
use axum::{routing::get, Router};

pub fn routes<S: SharedTrait>() -> Router {
Router::new()
.nest("/v1", v1::routes::<S>())
.nest("/internal", internal::routes::<S>())
.nest("/.well-known", well_known::routes::<S>())
.route("/ready", get(|| async {}))
.route("/live", get(|| async {}))
}

0 comments on commit 9f53276

Please sign in to comment.