summaryrefslogtreecommitdiffstats
path: root/appinfo
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2021-06-02 22:08:49 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2021-06-07 14:19:10 +0200
commit7ea382176c4fcf95135557b80a3c2f9632942834 (patch)
treeee2073ac4b0aee27ffb4b50b18d4d31142d162f2 /appinfo
parentd9331d2d21dcc7fa07abd505c876dcb886d06364 (diff)
Add endpoint to update the call flags
The call flags are updated when joining and leaving a call. However, during a call the audio and video devices can be disabled without needing a reconnection, so an endpoint to just update the call flags is also needed. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/routes.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index a1c75b8f3..83f76f137 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -123,6 +123,15 @@ return [
],
],
[
+ 'name' => 'Call#updateCallFlags',
+ 'url' => '/api/{apiVersion}/call/{token}',
+ 'verb' => 'PUT',
+ 'requirements' => [
+ 'apiVersion' => 'v(4)',
+ 'token' => '^[a-z0-9]{4,30}$',
+ ],
+ ],
+ [
'name' => 'Call#leaveCall',
'url' => '/api/{apiVersion}/call/{token}',
'verb' => 'DELETE',