Commit Diff


commit - 017324a1e98ac2da7812e4fcc06fe67d424e4ffb
commit + 3e51ca5cea08d8f20e579cdac7aa296f96967439
blob - d1c8ba234bce5e312437dc11de6a28a30a401722
blob + 64ec71848edcc1a463f86928aa7e5c9da25d60fa
--- web/template/src/router.rs
+++ web/template/src/router.rs
@@ -16,7 +16,11 @@
 use std::{sync::Arc, time::Duration};
 
 use axum::{
-    Router, extract::State, http::StatusCode, response::Html, routing::get,
+    Router,
+    extract::State,
+    http::StatusCode,
+    response::{Html, IntoResponse},
+    routing::get,
 };
 use minijinja::context;
 use tower_http::{
@@ -27,6 +31,7 @@ use crate::state::AppState;
 
 pub(crate) fn route(app_state: Arc<AppState>) -> Router {
     Router::new()
+        .route("/healthz", get(healthz))
         .route("/", get(handler_home))
         .route("/content", get(handler_content))
         .route("/about", get(handler_about))
@@ -40,6 +45,10 @@ pub(crate) fn route(app_state: Arc<AppState>) -> Route
         .with_state(app_state)
 }
 
+async fn healthz() -> impl IntoResponse {
+    StatusCode::OK
+}
+
 async fn handler_home(
     State(state): State<Arc<AppState>>,
 ) -> Result<Html<String>, StatusCode> {