summaryrefslogtreecommitdiffstats
path: root/appinfo
diff options
context:
space:
mode:
authorVitor Mattos <vitor@php.rio>2022-12-09 16:36:22 -0300
committerVitor Mattos <vitor@php.rio>2022-12-09 17:02:58 -0300
commit26bba30275f375de826d65deaaa92ad5e264c8c9 (patch)
tree7f95f4a8f9b8493d860596e1b9efd49ce9f70409 /appinfo
parentd36acdcb064bec87c91b4f2290b574c28b09e45b (diff)
Add system message and tests
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/routes/routesCallController.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/appinfo/routes/routesCallController.php b/appinfo/routes/routesCallController.php
index 11a3f6d62..9c4e5b4f8 100644
--- a/appinfo/routes/routesCallController.php
+++ b/appinfo/routes/routesCallController.php
@@ -28,6 +28,11 @@ $requirements = [
'token' => '[a-z0-9]{4,30}',
];
+$requirementsRecording = [
+ 'apiVersion' => 'v1',
+ 'token' => '[a-z0-9]{4,30}',
+];
+
return [
'ocs' => [
/** @see \OCA\Talk\Controller\CallController::getPeersForCall() */
@@ -41,8 +46,8 @@ return [
/** @see \OCA\Talk\Controller\CallController::leaveCall() */
['name' => 'Call#leaveCall', 'url' => '/api/{apiVersion}/call/{token}', 'verb' => 'DELETE', 'requirements' => $requirements],
/** @see \OCA\Talk\Controller\CallController::startRecording() */
- ['name' => 'Call#startRecording', 'url' => '/api/{apiVersion}/call/{token}/recording', 'verb' => 'POST', 'requirements' => $requirementsWithToken],
+ ['name' => 'Call#startRecording', 'url' => '/api/{apiVersion}/call/{token}/recording', 'verb' => 'POST', 'requirements' => $requirementsRecording],
/** @see \OCA\Talk\Controller\CallController::stopRecording() */
- ['name' => 'Call#stopRecording', 'url' => '/api/{apiVersion}/call/{token}/recording', 'verb' => 'DELETE', 'requirements' => $requirementsWithToken],
+ ['name' => 'Call#stopRecording', 'url' => '/api/{apiVersion}/call/{token}/recording', 'verb' => 'DELETE', 'requirements' => $requirementsRecording],
],
];