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 | a5fb523c9a0a23913e4219c6334f5e872b585872 (patch) | |
| tree | 4c9905f002c8446750d1e7146592b70a37ee7269 /src/api/mod.rs | |
| parent | 490234bbd44356da1cca0ad62b044e0cba70a226 (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 { |
