global: traversable

This commit is contained in:
nym21
2025-10-05 23:40:04 +02:00
parent b622285999
commit 1c6ece48a8
72 changed files with 1009 additions and 1383 deletions

View File

@@ -5,7 +5,7 @@ use axum::{
response::{IntoResponse, Response},
routing::get,
};
use brk_interface::{Index, PaginatedIndexParam, PaginationParam, Params, ParamsDeprec, ParamsOpt};
use brk_interface::{Index, PaginationParam, Params, ParamsDeprec, ParamsOpt};
use super::AppState;
@@ -35,6 +35,12 @@ impl ApiMetricsRoutes for Router<AppState> {
Json(app_state.interface.get_indexes()).into_response()
}),
)
.route(
"/api/metrics/catalog",
get(async |State(app_state): State<AppState>| -> Response {
Json(app_state.interface.get_metrics_catalog()).into_response()
}),
)
.route(
"/api/metrics/list",
get(