Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-07-10 17:50:07 +0300
committerJoas Schilling <coding@schilljs.com>2017-07-17 12:05:51 +0300
commit86a3566e25a0e665771020fd2b2b162de262070c (patch)
treed11f8e1da7fe0c29d5e564181fca25e5bf4571e5 /appinfo
parent225d7c64a84fd7c6382bc44286ed8429ff2cd081 (diff)
Endpoint to promote and demote moderators
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/routes.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 79e71cbeb..40b96225f 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -148,6 +148,24 @@ return [
'token' => '^[a-z0-9]{4,30}$',
],
],
+ [
+ 'name' => 'Room#promoteModerator',
+ 'url' => '/api/{apiVersion}/room/{token}/moderators',
+ 'verb' => 'POST',
+ 'requirements' => [
+ 'apiVersion' => 'v1',
+ 'token' => '^[a-z0-9]{4,30}$',
+ ],
+ ],
+ [
+ 'name' => 'Room#demoteModerator',
+ 'url' => '/api/{apiVersion}/room/{token}/moderators',
+ 'verb' => 'DELETE',
+ 'requirements' => [
+ 'apiVersion' => 'v1',
+ 'token' => '^[a-z0-9]{4,30}$',
+ ],
+ ],
],
];