simple websocket implementation (without auth use)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user