channel_folder: Add API to create a channel folder.

This commit also includes code to include channel_folders
data in register response.

Fixes part of #31972.
This commit is contained in:
Sahil Batra
2025-05-02 19:20:22 +05:30
committed by Tim Abbott
parent 350f6a1fa1
commit 332abd9e91
17 changed files with 471 additions and 4 deletions

View File

@@ -63,6 +63,7 @@
* [Delete a topic](/api/delete-topic)
* [Add a default channel](/api/add-default-stream)
* [Remove a default channel](/api/remove-default-stream)
* [Create a channel folder](/api/create-channel-folder)
#### Users

View File

@@ -0,0 +1,8 @@
* [`POST /channel_folders/create`](/api/create-channel-folder): Added
a new endpoint for creating a new channel folder.
* [`GET /events`](/api/get-events): An event with `type: "channel_folder"` is
sent to all users when a channel folder is created.
* [`POST /register`](/api/register-queue): Added `channel_folders` field to
response.