diff --git a/src/api/mod.rs b/src/api/mod.rs index 2fef4dbf..b9614f25 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -1,5 +1,5 @@ pub mod client; -pub mod router; +pub mod routes; mod ruma_wrapper; pub mod server; diff --git a/src/api/router.rs b/src/api/routes.rs similarity index 100% rename from src/api/router.rs rename to src/api/routes.rs diff --git a/src/router/router.rs b/src/router/router.rs index c0a382b6..da31ffea 100644 --- a/src/router/router.rs +++ b/src/router/router.rs @@ -15,7 +15,7 @@ pub(crate) fn build(server: &Arc) -> Router { .fallback(not_found) .with_state(state); - api::router::build(router, server) + api::routes::build(router, server) } async fn not_found(_uri: Uri) -> impl IntoResponse {