mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
channel_folders: Add support to update channel folders.
Fixes part of #31972.
This commit is contained in:
@@ -45,7 +45,11 @@ from zerver.views.auth import (
|
||||
start_social_login,
|
||||
start_social_signup,
|
||||
)
|
||||
from zerver.views.channel_folders import create_channel_folder, get_channel_folders
|
||||
from zerver.views.channel_folders import (
|
||||
create_channel_folder,
|
||||
get_channel_folders,
|
||||
update_channel_folder,
|
||||
)
|
||||
from zerver.views.compatibility import check_global_compatibility
|
||||
from zerver.views.custom_profile_fields import (
|
||||
create_realm_custom_profile_field,
|
||||
@@ -533,6 +537,7 @@ v1_api_and_json_patterns = [
|
||||
),
|
||||
rest_path("channel_folders/create", POST=create_channel_folder),
|
||||
rest_path("channel_folders", GET=get_channel_folders),
|
||||
rest_path("channel_folders/<int:channel_folder_id>", PATCH=update_channel_folder),
|
||||
# topic-muting -> zerver.views.user_topics
|
||||
# (deprecated and will be removed once clients are migrated to use '/user_topics')
|
||||
rest_path("users/me/subscriptions/muted_topics", PATCH=update_muted_topic),
|
||||
|
Reference in New Issue
Block a user