From 2f571787a3499a60457c05de6bd33670834b0143 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 18 Jun 2020 09:06:59 +0200 Subject: [PATCH] Ready to implement the method to find a private conversation --- 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 930e735..7060ba1 100644 --- a/src/controllers/conversations_controller.rs +++ b/src/controllers/conversations_controller.rs @@ -126,4 +126,9 @@ pub fn update_settings(r: &mut HttpRequestHandler) -> RequestResult { } r.success("Conversation information successfully updated!") +} + +/// Find a private conversation +pub fn find_private(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 d43472a..9c0e5ca 100644 --- a/src/controllers/routes.rs +++ b/src/controllers/routes.rs @@ -98,6 +98,8 @@ pub fn get_routes() -> Vec { Route::post("/conversations/updateSettings", Box::new(conversations_controller::update_settings)), + Route::post("/conversations/getPrivate", Box::new(conversations_controller::find_private)), + // Virtual directory controller Route::post("/user/findbyfolder", Box::new(virtual_directory_controller::find_user)),