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:
parent
8b0095942c
commit
c28196f80e
@ -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")
|
||||||
}
|
}
|
@ -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)),
|
||||||
|
Loading…
Reference in New Issue
Block a user