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>2019-09-27 16:15:46 +0300
committerJoas Schilling <coding@schilljs.com>2019-10-01 10:25:18 +0300
commit9c6415cf6ae2afad08922aa884aa5397a4025545 (patch)
tree27e33bbf6640ca06c38b1506f677aaf670331e7f /appinfo/routes.php
parentbdb9b52cbfc2896b8e27884b6ea4f70f6665e420 (diff)
Merge the two controllers
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'appinfo/routes.php')
-rw-r--r--appinfo/routes.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 3290431ab..5603142c1 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -341,7 +341,7 @@ return [
* FilesIntegration
*/
[
- 'name' => 'FilesIntegration#getRoom',
+ 'name' => 'FilesIntegration#getRoomByFileId',
'url' => '/api/{apiVersion}/file/{fileId}',
'verb' => 'GET',
'requirements' => [
@@ -349,15 +349,14 @@ return [
'fileId' => '.+'
],
],
-
- /**
- * PublicShare
- */
[
- 'name' => 'PublicShare#getRoom',
+ 'name' => 'FilesIntegration#getRoomByShareToken',
'url' => '/api/{apiVersion}/publicshare/{shareToken}',
'verb' => 'GET',
- 'requirements' => ['apiVersion' => 'v1'],
+ 'requirements' => [
+ 'apiVersion' => 'v1',
+ 'shareToken' => '.+',
+ ],
],
/**