diff options
author | Joas Schilling <coding@schilljs.com> | 2017-07-12 11:59:20 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-07-12 13:01:04 +0300 |
commit | 0d455abcee36a4ffe956df7cd49913e0de5856ea (patch) | |
tree | a98c9401bdab9863014380619ff4ba189ccd7102 /appinfo | |
parent | 7c8441c793a3f3f91bc03fe772237116a6e798b5 (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.php | 7 |
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}$', + ], ], [ |