feat: reimplement old websocket

This commit is contained in:
Radical 2025-07-20 18:11:08 +02:00
parent a602c2624f
commit 2fb7e7781f
6 changed files with 91 additions and 70 deletions

View file

@ -2,7 +2,7 @@ use std::sync::Arc;
use axum::{
Router,
routing::{delete, get, patch},
routing::{any, delete, get, patch},
};
//use socketioxide::SocketIo;
@ -15,5 +15,6 @@ pub fn router() -> Router<Arc<AppState>> {
.route("/{uuid}", get(uuid::get))
.route("/{uuid}", delete(uuid::delete))
.route("/{uuid}", patch(uuid::patch))
.route("/{uuid}/socket", any(uuid::socket::ws))
.route("/{uuid}/messages", get(uuid::messages::get))
}