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 | 048fb18bbc12a55a44ccd47e546d4029201ececa (patch) | |
| tree | 8c5862ec8b1ab48152557bec5fd44929451686f1 /src/api/mod.rs | |
| parent | 6be541593923aad34c61b11dea16fe04ef277f2a (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>()); |
