From 0254b6b61450fdf06510b9c4f51e9ee2936ac5b7 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 20 Jun 2020 07:42:18 +0200 Subject: [PATCH] Ready to implement new route --- src/controllers/conversations_controller.rs | 5 +++++ src/controllers/routes.rs | 2 ++ 2 files changed, 7 insertions(+) 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)),