1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-01-30 14:03:00 +00:00

Ready to implement

This commit is contained in:
Pierre HUBERT 2020-06-18 09:55:02 +02:00
parent e71b5bcc83
commit 479caa3945
2 changed files with 9 additions and 0 deletions

View File

@ -154,4 +154,11 @@ pub fn find_private(r: &mut HttpRequestHandler) -> RequestResult {
}
r.set_response(ResFindPrivateConversations::new(list))
}
/// DEPRECATED : refresh current user conversations
///
/// This method was used only by ComunicWeb before the introduction of WebSockets
pub fn refresh_list(r: &mut HttpRequestHandler) -> RequestResult {
r.success("Can implement")
}

View File

@ -100,6 +100,8 @@ pub fn get_routes() -> Vec<Route> {
Route::post("/conversations/getPrivate", Box::new(conversations_controller::find_private)),
Route::post("/conversations/refresh", Box::new(conversations_controller::refresh_list)),
// Virtual directory controller
Route::post("/user/findbyfolder", Box::new(virtual_directory_controller::find_user)),