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

Ready to implement new route

This commit is contained in:
Pierre HUBERT 2020-06-20 07:42:18 +02:00
parent ba2e89d0be
commit 0254b6b614
2 changed files with 7 additions and 0 deletions

View File

@ -210,4 +210,9 @@ pub fn refresh_list(r: &mut HttpRequestHandler) -> RequestResult {
}
r.set_response(ConversationRefreshResultAPI::new(list))
}
/// Refresh a single conversation
pub fn refresh_single(r: &mut HttpRequestHandler) -> RequestResult {
r.success("implement it")
}

View File

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