feat: Allow configuring the OAuth compatibility mode

This commit is contained in:
Ginger
2026-05-01 10:57:44 -04:00
parent 81388162f0
commit 4bbbbb854e
12 changed files with 122 additions and 25 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ use ruma::api::error::ErrorKind;
pub(crate) fn build(services: &Arc<Services>) -> (Router, Guard) {
let router = Router::<state::State>::new();
let (state, guard) = state::create(services.clone());
let router = conduwuit_api::router::build(router, &services.server)
let router = conduwuit_api::router::build(router, state)
.merge(conduwuit_web::build(services))
.fallback(not_found)
.with_state(state);