mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-26 07:19:22 +00:00
Give a more logical name to a route
This commit is contained in:
parent
a7b3329226
commit
7902981c22
@ -192,8 +192,8 @@ pub fn create_conversation(r: &mut HttpRequestHandler) -> RequestResult {
|
||||
r.set_response(ResCreateConversationForGroup::new(conv_id))
|
||||
}
|
||||
|
||||
/// Update a group's conversation settings
|
||||
pub fn update_conversation(r: &mut HttpRequestHandler) -> RequestResult {
|
||||
/// Update a group's conversation visibility
|
||||
pub fn set_conversation_visibility(r: &mut HttpRequestHandler) -> RequestResult {
|
||||
let conv = r.post_group_conv_admin("conv_id")?;
|
||||
let min_level = r.post_group_membership_level_for_conversation("min_membership_level")?;
|
||||
|
||||
|
@ -228,7 +228,7 @@ pub fn get_routes() -> Vec<Route> {
|
||||
Route::post("/groups/upload_logo", Box::new(groups_controller::upload_logo)),
|
||||
Route::post("/groups/delete_logo", Box::new(groups_controller::delete_logo)),
|
||||
Route::post("/groups/create_conversation", Box::new(groups_controller::create_conversation)),
|
||||
Route::post("/groups/update_conversation", Box::new(groups_controller::update_conversation)),
|
||||
Route::post("/groups/set_conversation_visibility", Box::new(groups_controller::set_conversation_visibility)),
|
||||
Route::post("/groups/delete_conversation", Box::new(groups_controller::delete_conversation)),
|
||||
Route::post("/groups/get_members", Box::new(groups_controller::get_members)),
|
||||
Route::post("/groups/invite", Box::new(groups_controller::invite_user)),
|
||||
|
Loading…
Reference in New Issue
Block a user