From a5fb523c9a0a23913e4219c6334f5e872b585872 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 24 Oct 2026 06:10:31 +0200 Subject: expose stats via the API GET /admin/stats to retrieve all stats. --- src/api/mod.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/api/mod.rs') 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::()); if debug_api { -- cgit v1.3.1