From 64705fa27d593255a2ca32cca1a058197d61b9f1 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sun, 16 Jun 2024 21:29:59 +0000 Subject: [PATCH] rename router to routes Signed-off-by: Jason Volk --- src/api/mod.rs | 2 +- src/api/{router.rs => routes.rs} | 0 src/router/router.rs | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename src/api/{router.rs => routes.rs} (100%) 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 {