1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-12-28 14:38:52 +00:00

Ready to implement messages sending

This commit is contained in:
Pierre HUBERT 2020-06-20 11:55:39 +02:00
parent 25a368fd98
commit ca82924b85
2 changed files with 7 additions and 0 deletions

View File

@ -229,4 +229,9 @@ pub fn refresh_single(r: &mut HttpRequestHandler) -> RequestResult {
conversations_helper::mark_user_seen(conv_id, r.user_id()?)?;
r.set_response(ConversationMessageAPI::for_list(&messages))
}
/// Send a new message
pub fn send_message(r: &mut HttpRequestHandler) -> RequestResult {
r.success("implement me")
}

View File

@ -104,6 +104,8 @@ pub fn get_routes() -> Vec<Route> {
Route::post("/conversations/refresh_single", Box::new(conversations_controller::refresh_single)),
Route::post("/conversations/sendMessage", Box::new(conversations_controller::send_message)),
// Virtual directory controller
Route::post("/user/findbyfolder", Box::new(virtual_directory_controller::find_user)),