get all room endpoint + clean fil structure
This commit is contained in:
@@ -6,9 +6,7 @@ use axum::{
|
||||
};
|
||||
|
||||
use crate::utils::db_pool::AppState;
|
||||
use crate::chat::handlers::{
|
||||
create_conversation,add_user_to_conv,send_message,get_message
|
||||
};
|
||||
use crate::chat::handlers::*;
|
||||
|
||||
|
||||
|
||||
@@ -21,5 +19,6 @@ pub fn chat_routes() -> Router<AppState> {
|
||||
.route("/add_users_conv", put(add_user_to_conv))
|
||||
.route("/send_message", post(send_message))
|
||||
.route("/get_message", get(get_message))
|
||||
|
||||
.route("/hotel_users", get(get_hotel_users))
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user