feat: reimplement old websocket
This commit is contained in:
parent
a602c2624f
commit
2fb7e7781f
6 changed files with 91 additions and 70 deletions
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue