diff options
Diffstat (limited to 'src/channel')
| -rw-r--r-- | src/channel/mod.rs | 4 | ||||
| -rw-r--r-- | src/channel/routes/mod.rs | 18 |
2 files changed, 4 insertions, 18 deletions
diff --git a/src/channel/mod.rs b/src/channel/mod.rs index d5ba828..feb00a9 100644 --- a/src/channel/mod.rs +++ b/src/channel/mod.rs @@ -3,8 +3,8 @@ pub mod event; mod history; mod id; pub mod repo; -mod routes; +pub mod routes; mod snapshot; mod validate; -pub use self::{event::Event, history::History, id::Id, routes::router, snapshot::Channel}; +pub use self::{event::Event, history::History, id::Id, snapshot::Channel}; diff --git a/src/channel/routes/mod.rs b/src/channel/routes/mod.rs index c917348..bd90721 100644 --- a/src/channel/routes/mod.rs +++ b/src/channel/routes/mod.rs @@ -1,19 +1,5 @@ -use axum::{ - Router, - routing::{delete, post}, -}; - -use crate::app::App; - -mod channel; -mod post; +pub mod channel; +pub mod post; #[cfg(test)] mod test; - -pub fn router() -> Router<App> { - Router::new() - .route("/api/channels", post(post::handler)) - .route("/api/channels/{channel}", post(channel::post::handler)) - .route("/api/channels/{channel}", delete(channel::delete::handler)) -} |
