diff --git a/src/controllers/conversations_controller.rs b/src/controllers/conversations_controller.rs index 3fb26f3..3838872 100644 --- a/src/controllers/conversations_controller.rs +++ b/src/controllers/conversations_controller.rs @@ -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") } \ No newline at end of file diff --git a/src/controllers/routes.rs b/src/controllers/routes.rs index 6910727..ce4ee21 100644 --- a/src/controllers/routes.rs +++ b/src/controllers/routes.rs @@ -102,6 +102,8 @@ pub fn get_routes() -> Vec { 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)),