diff options
| author | tv <tv@krebsco.de> | 2026-11-01 22:27:22 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-01 22:27:22 +0100 |
| commit | deea3053154301308c4a7217b2f741f4e6dd5f1f (patch) | |
| tree | 124db55ba72591304e4c121d13802527d50d080b /src/api/mod.rs | |
| parent | b2273bc74e18201318f1e86b0f27a6a3cd874629 (diff) | |
api: introduce /admin/changes
Diffstat (limited to 'src/api/mod.rs')
| -rw-r--r-- | src/api/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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::<AppState>()); |
