backend/src/api/v1/invites/mod.rs
Radical 324137ce8b refactor: rewrite entire codebase in axum instead of actix
Replaces actix with axum for web, allows us to use socket.io and gives us access to the tower ecosystem of middleware

breaks compatibility with our current websocket implementation, needs to be reimplemented for socket.io
2025-07-16 16:36:22 +02:00

16 lines
247 B
Rust

use std::sync::Arc;
use axum::{
Router,
routing::{get, post},
};
use crate::AppState;
mod id;
pub fn router() -> Router<Arc<AppState>> {
Router::new()
.route("/{id}", get(id::get))
.route("/{id}", post(id::join))
}