aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/mod.rs
diff options
context:
space:
mode:
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 97724ff..d91c434 100644
--- a/src/api/mod.rs
+++ b/src/api/mod.rs
@@ -10,6 +10,8 @@ mod cors;
mod dashboard;
mod debug;
mod document;
+#[cfg(feature = "federation")]
+mod events;
mod health;
pub(crate) mod listen;
mod log;
@@ -102,6 +104,11 @@ pub(crate) fn router(state: AppState, auth_state: AuthState, debug_api: bool) ->
api = api.merge(dashboard::router(state.clone()));
}
+ #[cfg(feature = "federation")]
+ {
+ api = api.merge(events::router());
+ }
+
if debug_api {
warn!("Debug API enabled");
api = api.route(