summaryrefslogtreecommitdiff
path: root/src/invite/routes/mod.rs
blob: a25dcd91182178f8151b6db3aaec2726c3ae5206 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use axum::{
    routing::{get, post},
    Router,
};

use crate::app::App;

mod invite;
mod post;
#[cfg(test)]
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))
}