From 703177a587f2187c75e543511ecdf699637e3e95 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 27 Jun 2020 18:36:53 +0200 Subject: [PATCH] Ready to implement new route --- 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 3e1128f..37d276c 100644 --- a/src/controllers/groups_controller.rs +++ b/src/controllers/groups_controller.rs @@ -268,4 +268,9 @@ pub fn delete_member(r: &mut HttpRequestHandler) -> RequestResult { // TODO : Delete related notifications r.success("Membership of the user has been successfully deleted!") +} + +/// Update a user's membership +pub fn update_membership(r: &mut HttpRequestHandler) -> RequestResult { + r.success("ready to implement") } \ No newline at end of file diff --git a/src/controllers/routes.rs b/src/controllers/routes.rs index c53bb56..be41116 100644 --- a/src/controllers/routes.rs +++ b/src/controllers/routes.rs @@ -160,6 +160,8 @@ pub fn get_routes() -> Vec { Route::post("/groups/delete_member", Box::new(groups_controller::delete_member)), + Route::post("/groups/update_membership_level", Box::new(groups_controller::update_membership)), + // Virtual directory controller Route::post("/user/findbyfolder", Box::new(virtual_directory_controller::find_user)),