summaryrefslogtreecommitdiff
path: root/src/channel/routes.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/channel/routes.rs')
-rw-r--r--src/channel/routes.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/channel/routes.rs b/src/channel/routes.rs
index 3c2353b..1379153 100644
--- a/src/channel/routes.rs
+++ b/src/channel/routes.rs
@@ -5,8 +5,12 @@ use axum::{
Router,
};
-use super::repo::channels::Id as ChannelId;
-use crate::{app::App, clock::RequestedAt, error::InternalError, login::repo::logins::Login};
+use crate::{
+ app::App,
+ clock::RequestedAt,
+ error::InternalError,
+ repo::{channel, login::Login},
+};
pub fn router() -> Router<App> {
Router::new()
@@ -35,7 +39,7 @@ struct SendRequest {
}
async fn on_send(
- Path(channel): Path<ChannelId>,
+ Path(channel): Path<channel::Id>,
RequestedAt(sent_at): RequestedAt,
State(app): State<App>,
login: Login,