diff options
| author | tv <tv@krebsco.de> | 2026-10-24 06:10:31 +0200 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-24 06:10:31 +0200 |
| commit | 6f2d577b186d84c56ef22afd467d990d873d8926 (patch) | |
| tree | 57aa1c82b0247947de6d8cb1101b5dcea63115bf /src/api/mod.rs | |
| parent | 7542d33f5d476a35d068a4246399cc0c164dac06 (diff) | |
expose stats via the API
GET /admin/stats to retrieve all stats.
Diffstat (limited to 'src/api/mod.rs')
| -rw-r--r-- | src/api/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/api/mod.rs b/src/api/mod.rs index bf74de5..d7f14b3 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -4,6 +4,7 @@ pub(crate) mod auth; mod debug; mod log; mod peers; +mod stats; mod store; use axum::{ @@ -42,6 +43,7 @@ pub(crate) fn router(state: AppState, auth_state: AuthState, debug_api: bool) -> "/admin/log", get(log::get_log_filter).put(log::put_log_filter), ) + .route("/admin/stats", get(stats::get_stats)) .merge(crate::remake::router::<AppState>()); if debug_api { |
