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 07:29:23 +02:00
parent d7608ec974
commit 1d4e3dba5a
2 changed files with 7 additions and 0 deletions

View File

@ -155,4 +155,9 @@ pub fn get_members(r: &mut HttpRequestHandler) -> RequestResult {
let members = groups_helper::get_list_members(&group_id)?; let members = groups_helper::get_list_members(&group_id)?;
r.set_response(GroupMemberAPI::for_list(&members)) r.set_response(GroupMemberAPI::for_list(&members))
}
/// Invite a user to join a group
pub fn invite_user(r: &mut HttpRequestHandler) -> RequestResult {
r.success("Ready to implement")
} }

View File

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