summaryrefslogtreecommitdiff
path: root/src/invite/routes/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/invite/routes/mod.rs')
-rw-r--r--src/invite/routes/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/invite/routes/mod.rs b/src/invite/routes/mod.rs
index 2f7375c..d83efc6 100644
--- a/src/invite/routes/mod.rs
+++ b/src/invite/routes/mod.rs
@@ -1,6 +1,6 @@
use axum::{
- routing::{get, post},
Router,
+ routing::{get, post},
};
use crate::app::App;
@@ -13,6 +13,6 @@ mod test;
pub fn router() -> Router<App> {
Router::new()
.route("/api/invite", post(post::handler))
- .route("/api/invite/:invite", get(invite::get::handler))
- .route("/api/invite/:invite", post(invite::post::handler))
+ .route("/api/invite/{invite}", get(invite::get::handler))
+ .route("/api/invite/{invite}", post(invite::post::handler))
}