mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-22 13:29:21 +00:00
Ready to implement new method
This commit is contained in:
parent
fb99586afc
commit
bd3818360b
@ -82,4 +82,9 @@ pub fn get_settings(r: &mut HttpRequestHandler) -> RequestResult {
|
||||
// For now, this method is the same as the get advanced info method,
|
||||
// but this might change in the future...
|
||||
r.set_response(AdvancedGroupApi::new(&group, r.user_id_opt())?)
|
||||
}
|
||||
|
||||
/// Set new settings to the group
|
||||
pub fn set_settings(r: &mut HttpRequestHandler) -> RequestResult {
|
||||
r.success("implement me")
|
||||
}
|
@ -140,6 +140,8 @@ pub fn get_routes() -> Vec<Route> {
|
||||
|
||||
Route::post("/groups/get_settings", Box::new(groups_controller::get_settings)),
|
||||
|
||||
Route::post("/groups/set_settings", Box::new(groups_controller::set_settings)),
|
||||
|
||||
|
||||
// Virtual directory controller
|
||||
Route::post("/user/findbyfolder", Box::new(virtual_directory_controller::find_user)),
|
||||
|
Loading…
Reference in New Issue
Block a user