From 544f3370da3bc72a2b5238c5875f247778d014d4 Mon Sep 17 00:00:00 2001 From: Hunter Casten <41604962+enchantednatures@users.noreply.github.com> Date: Sun, 9 Mar 2025 15:43:27 -0600 Subject: feat(health): add health check endpoint at `/healthz` (#2549) * feat(health): add health check endpoint at `/healthz` * feat(health-check): remove invalid health-check from docker compose --- crates/atuin-server/src/router.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'crates/atuin-server/src/router.rs') diff --git a/crates/atuin-server/src/router.rs b/crates/atuin-server/src/router.rs index df3a2937..d6700b8d 100644 --- a/crates/atuin-server/src/router.rs +++ b/crates/atuin-server/src/router.rs @@ -111,6 +111,7 @@ pub struct AppState { pub fn router(database: DB, settings: Settings) -> Router { let routes = Router::new() .route("/", get(handlers::index)) + .route("/healthz", get(handlers::health::health_check)) .route("/sync/count", get(handlers::history::count)) .route("/sync/history", get(handlers::history::list)) .route("/sync/calendar/:focus", get(handlers::history::calendar)) -- cgit v1.3.1