feat: Prefill server name in federation test

This commit is contained in:
Jade Ellis 2025-05-01 18:46:30 +01:00 committed by magmaus3
parent f399fd8063
commit 4f19147d5e
Signed by: magmaus3
GPG key ID: C8AABFABFA2FAF66
9 changed files with 24 additions and 12 deletions

View file

@ -6,8 +6,7 @@ use axum::{
};
use axum_client_ip::SecureClientIpSource;
use conduwuit::{Result, Server, debug, error};
use conduwuit_api::router::state::Guard;
use conduwuit_service::Services;
use conduwuit_service::{Services, state::Guard};
use http::{
HeaderValue, Method, StatusCode,
header::{self, HeaderName},

View file

@ -2,8 +2,7 @@ use std::sync::Arc;
use axum::{Router, response::IntoResponse};
use conduwuit::Error;
use conduwuit_api::router::{state, state::Guard};
use conduwuit_service::Services;
use conduwuit_service::{Services, state, state::Guard};
use http::{StatusCode, Uri};
use ruma::api::client::error::ErrorKind;
@ -11,7 +10,7 @@ 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)
.merge(conduwuit_web::build::<state::State>().with_state(()))
.merge(conduwuit_web::build())
.fallback(not_found)
.with_state(state);