get messages from timestamp

This commit is contained in:
2025-09-25 14:01:35 +02:00
parent bab0ff2d4f
commit ab0fbbce79
5 changed files with 90 additions and 4 deletions

View File

@@ -1,12 +1,13 @@
use axum::{
Router,
routing::put,
routing::post
routing::post,
routing::get,
};
use crate::utils::db_pool::AppState;
use crate::chat::handlers::{
create_conversation,add_user_to_conv,send_message
create_conversation,add_user_to_conv,send_message,get_message
};
@@ -19,5 +20,6 @@ pub fn chat_routes() -> Router<AppState> {
.route("/create_conversation", post (create_conversation))
.route("/add_users_conv", put(add_user_to_conv))
.route("/send_message", post(send_message))
.route("/get_message", get(get_message))
}