mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-26 07:19:22 +00:00
Ready to implement new route
This commit is contained in:
parent
926892a29b
commit
703177a587
@ -269,3 +269,8 @@ pub fn delete_member(r: &mut HttpRequestHandler) -> RequestResult {
|
|||||||
|
|
||||||
r.success("Membership of the user has been successfully deleted!")
|
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")
|
||||||
|
}
|
@ -160,6 +160,8 @@ pub fn get_routes() -> Vec<Route> {
|
|||||||
|
|
||||||
Route::post("/groups/delete_member", Box::new(groups_controller::delete_member)),
|
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
|
// Virtual directory controller
|
||||||
Route::post("/user/findbyfolder", Box::new(virtual_directory_controller::find_user)),
|
Route::post("/user/findbyfolder", Box::new(virtual_directory_controller::find_user)),
|
||||||
|
Loading…
Reference in New Issue
Block a user