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.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/invite/routes/mod.rs b/src/invite/routes/mod.rs
new file mode 100644
index 0000000..dae20ba
--- /dev/null
+++ b/src/invite/routes/mod.rs
@@ -0,0 +1,16 @@
+use axum::{
+ routing::{get, post},
+ Router,
+};
+
+use crate::app::App;
+
+mod invite;
+mod post;
+
+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))
+}