diff --git a/src/controllers/groups_controller.rs b/src/controllers/groups_controller.rs index e1050d0..934cd28 100644 --- a/src/controllers/groups_controller.rs +++ b/src/controllers/groups_controller.rs @@ -155,4 +155,9 @@ pub fn get_members(r: &mut HttpRequestHandler) -> RequestResult { let members = groups_helper::get_list_members(&group_id)?; 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") } \ No newline at end of file diff --git a/src/controllers/routes.rs b/src/controllers/routes.rs index 2764a2d..cc54029 100644 --- a/src/controllers/routes.rs +++ b/src/controllers/routes.rs @@ -150,6 +150,8 @@ pub fn get_routes() -> Vec { Route::post("/groups/get_members", Box::new(groups_controller::get_members)), + Route::post("/groups/invite", Box::new(groups_controller::invite_user)), + // Virtual directory controller Route::post("/user/findbyfolder", Box::new(virtual_directory_controller::find_user)),