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
d7608ec974
commit
1d4e3dba5a
@ -156,3 +156,8 @@ pub fn get_members(r: &mut HttpRequestHandler) -> RequestResult {
|
||||
|
||||
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")
|
||||
}
|
@ -150,6 +150,8 @@ pub fn get_routes() -> Vec<Route> {
|
||||
|
||||
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)),
|
||||
|
Loading…
Reference in New Issue
Block a user