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 | 79dfdd35c36ade1f151e0731b217cabbc1b684f1 (patch) | |
| tree | 7905aa268d52e18c7bf6ec3d1c8216fc3bc90160 /src/api/mod.rs | |
| parent | 656cd21ce2625a8a2931b5b03d1d84227dd7e3e8 (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>()); |
