simple websocket implementation (without auth use)

This commit is contained in:
2025-09-26 02:23:25 +02:00
parent ab0fbbce79
commit 00c5c2bd63
7 changed files with 218 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ use axum::{
use crate::utils::auth::*;
use crate::utils::db_pool::{HotelPool, AppState, };
use crate::utils::websocket::ws_handler;
// ROOTS
pub fn utils_routes() -> Router<AppState> {
@@ -13,6 +13,8 @@ pub fn utils_routes() -> Router<AppState> {
Router::new()
.route("/login", put(clean_auth_loging))
.route("/register", put(register_user))
.route("/ws/{hotel_id}/{user_id}", get(ws_handler))
.route("/tokentest", put(token_tester))
//.with_state(state)
}