1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-12-28 14:38:52 +00:00

Ready to implement new route

This commit is contained in:
Pierre HUBERT 2020-06-27 18:06:13 +02:00
parent 8b0095942c
commit c28196f80e
2 changed files with 7 additions and 0 deletions

View File

@ -241,4 +241,9 @@ pub fn cancel_request(r: &mut HttpRequestHandler) -> RequestResult {
// TODO : delete any related notification // TODO : delete any related notification
r.success("The request has been successfully cancelled!") r.success("The request has been successfully cancelled!")
}
/// Remove a member from a group (as a moderator or an admin)
pub fn delete_member(r: &mut HttpRequestHandler) -> RequestResult {
r.success("Implement me")
} }

View File

@ -158,6 +158,8 @@ pub fn get_routes() -> Vec<Route> {
Route::post("/groups/cancel_request", Box::new(groups_controller::cancel_request)), Route::post("/groups/cancel_request", Box::new(groups_controller::cancel_request)),
Route::post("/groups/delete_member", Box::new(groups_controller::delete_member)),
// 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)),