From deea3053154301308c4a7217b2f741f4e6dd5f1f Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 1 Nov 2026 22:27:22 +0100 Subject: api: introduce /admin/changes --- src/api/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/api/mod.rs') diff --git a/src/api/mod.rs b/src/api/mod.rs index 31f4fea..b1f865a 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -2,6 +2,7 @@ //! own are in `store`). pub(crate) mod auth; +mod changes; mod config; #[cfg(feature = "dashboard")] mod dashboard; @@ -55,6 +56,8 @@ pub(crate) fn router(state: AppState, auth_state: AuthState, debug_api: bool) -> ) .route("/admin/stats", get(stats::get_stats)) .route("/admin/document", get(document::get_document)) + .route("/admin/changes", get(changes::get_changes)) + .route("/admin/changes/{*key}", get(changes::get_changes_at)) .route("/admin/config", get(config::get_config)) .merge(crate::remake::router::()); -- cgit v1.3.1