aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/mod.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-30 17:42:26 +0100
committertv <tv@krebsco.de>2026-10-30 17:42:26 +0100
commitd7825f533930a7b111ab74ef7cecf79dad908a55 (patch)
tree617420f1b7e9a6b134a8ba35841a7625049b74e8 /src/api/mod.rs
parent374ecc5fe306af89687be88b8071d20760d5f662 (diff)
add dashboard
Diffstat (limited to 'src/api/mod.rs')
-rw-r--r--src/api/mod.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/api/mod.rs b/src/api/mod.rs
index 2cb0415..fd05669 100644
--- a/src/api/mod.rs
+++ b/src/api/mod.rs
@@ -1,6 +1,8 @@
//! HTTP API: router, the API description and shared response helpers.
pub(crate) mod auth;
+#[cfg(feature = "dashboard")]
+mod dashboard;
mod debug;
mod document;
mod health;
@@ -55,6 +57,11 @@ pub(crate) fn router(state: AppState, auth_state: AuthState, debug_api: bool) ->
.route("/admin/config", get(get_config))
.merge(crate::remake::router::<AppState>());
+ #[cfg(feature = "dashboard")]
+ {
+ api = api.merge(dashboard::router(state.clone()));
+ }
+
if debug_api {
warn!("Debug API enabled");
api = api.route(