mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-29 16:56:28 +00:00
Ready to implement messages sending
This commit is contained in:
parent
25a368fd98
commit
ca82924b85
@ -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")
|
||||||
|
}
|
@ -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)),
|
||||||
|
Loading…
Reference in New Issue
Block a user