1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-12-27 22:18:51 +00:00

Ready to implement new route

This commit is contained in:
Pierre HUBERT 2020-06-27 18:36:53 +02:00
parent 926892a29b
commit 703177a587
2 changed files with 7 additions and 0 deletions

View File

@ -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")
}

View File

@ -160,6 +160,8 @@ pub fn get_routes() -> Vec<Route> {
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)),