rename ruma_wrapper to router

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-06-16 21:32:08 +00:00
parent 64705fa27d
commit 1c0ed91f6f
7 changed files with 4 additions and 3 deletions

View file

@ -1,14 +1,15 @@
pub mod client;
mod router;
pub mod routes;
mod ruma_wrapper;
pub mod server;
extern crate conduit_core as conduit;
extern crate conduit_service as service;
pub(crate) use conduit::{debug_info, debug_warn, utils, Error, Result};
pub(crate) use ruma_wrapper::{Ruma, RumaResponse};
pub(crate) use service::{pdu::PduEvent, services, user_is_local};
pub(crate) use crate::router::{Ruma, RumaResponse};
conduit::mod_ctor! {}
conduit::mod_dtor! {}

View file

@ -7,7 +7,7 @@ use conduit::{Error, Server};
use http::Uri;
use ruma::api::client::error::ErrorKind;
use crate::{client, ruma_wrapper::RouterExt, server};
use crate::{client, router::RouterExt, server};
pub fn build(router: Router, server: &Server) -> Router {
let config = &server.config;