1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-26 07:19:22 +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

@ -230,3 +230,8 @@ pub fn refresh_single(r: &mut HttpRequestHandler) -> RequestResult {
r.set_response(ConversationMessageAPI::for_list(&messages)) 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/refresh_single", Box::new(conversations_controller::refresh_single)),
Route::post("/conversations/sendMessage", Box::new(conversations_controller::send_message)),
// Virtual directory controller // Virtual directory controller
Route::post("/user/findbyfolder", Box::new(virtual_directory_controller::find_user)), Route::post("/user/findbyfolder", Box::new(virtual_directory_controller::find_user)),