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-12 11:59:20 +0300
committerJoas Schilling <coding@schilljs.com>2017-07-12 13:01:04 +0300
commit0d455abcee36a4ffe956df7cd49913e0de5856ea (patch)
treea98c9401bdab9863014380619ff4ba189ccd7102 /appinfo
parent7c8441c793a3f3f91bc03fe772237116a6e798b5 (diff)
Add token to the leave call request as well
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/routes.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 72f83ed6c..72d532cde 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -74,9 +74,12 @@ return [
],
[
'name' => 'Call#leaveCall',
- 'url' => '/api/{apiVersion}/call',
+ 'url' => '/api/{apiVersion}/call/{token}',
'verb' => 'DELETE',
- 'requirements' => ['apiVersion' => 'v1'],
+ 'requirements' => [
+ 'apiVersion' => 'v1',
+ 'token' => '^[a-z0-9]{4,30}$',
+ ],
],
[