diff options
| author | Hunter Casten <41604962+enchantednatures@users.noreply.github.com> | 2025-03-09 15:43:27 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-09 21:43:27 +0000 |
| commit | 544f3370da3bc72a2b5238c5875f247778d014d4 (patch) | |
| tree | bc8b91c6ac5c5296a6b18c38519545dd9777ee57 /crates/atuin-server/src/router.rs | |
| parent | fix: up binding with fish 4.0 (#2613) (#2616) (diff) | |
| download | atuin-544f3370da3bc72a2b5238c5875f247778d014d4.zip | |
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
Diffstat (limited to 'crates/atuin-server/src/router.rs')
| -rw-r--r-- | crates/atuin-server/src/router.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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<DB: Database> { pub fn router<DB: Database>(database: DB, settings: Settings<DB::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)) |
