From bd3818360b13f42b18e19698e2918e2e930d061f Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 25 Jun 2020 17:55:46 +0200 Subject: [PATCH] Ready to implement new method --- src/controllers/groups_controller.rs | 5 +++++ src/controllers/routes.rs | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/controllers/groups_controller.rs b/src/controllers/groups_controller.rs index 90a7c53..d5a1377 100644 --- a/src/controllers/groups_controller.rs +++ b/src/controllers/groups_controller.rs @@ -82,4 +82,9 @@ pub fn get_settings(r: &mut HttpRequestHandler) -> RequestResult { // For now, this method is the same as the get advanced info method, // but this might change in the future... r.set_response(AdvancedGroupApi::new(&group, r.user_id_opt())?) +} + +/// Set new settings to the group +pub fn set_settings(r: &mut HttpRequestHandler) -> RequestResult { + r.success("implement me") } \ No newline at end of file diff --git a/src/controllers/routes.rs b/src/controllers/routes.rs index 2b9c44e..3b7bedc 100644 --- a/src/controllers/routes.rs +++ b/src/controllers/routes.rs @@ -140,6 +140,8 @@ pub fn get_routes() -> Vec { Route::post("/groups/get_settings", Box::new(groups_controller::get_settings)), + Route::post("/groups/set_settings", Box::new(groups_controller::set_settings)), + // Virtual directory controller Route::post("/user/findbyfolder", Box::new(virtual_directory_controller::find_user)),