diff options
author | Joas Schilling <coding@schilljs.com> | 2017-07-10 17:50:07 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-07-17 12:05:51 +0300 |
commit | 86a3566e25a0e665771020fd2b2b162de262070c (patch) | |
tree | d11f8e1da7fe0c29d5e564181fca25e5bf4571e5 /appinfo | |
parent | 225d7c64a84fd7c6382bc44286ed8429ff2cd081 (diff) |
Endpoint to promote and demote moderators
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/routes.php | 18 |
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}$', + ], + ], ], ]; |