summaryrefslogtreecommitdiffstats
path: root/appinfo/routes.php
diff options
context:
space:
mode:
Diffstat (limited to 'appinfo/routes.php')
-rw-r--r--appinfo/routes.php14
1 files changed, 10 insertions, 4 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 5ae06249..db37ad4c 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -46,10 +46,7 @@ return [
'path' => '',
]
],
- [ 'name' => 'publicAlbum#get', 'url' => '/public/{ownerId}/{token}', 'verb' => 'GET',
- 'requirements' => [
- 'ownerId' => '.*',
- ],
+ [ 'name' => 'publicAlbum#get', 'url' => '/public/{token}', 'verb' => 'GET',
'requirements' => [
'token' => '.*',
],
@@ -132,5 +129,14 @@ return [
'fileId' => '.*',
]
],
+
+ [
+ 'name' => 'publicPreview#index',
+ 'url' => '/api/v1/publicPreview/{fileId}',
+ 'verb' => 'GET',
+ 'requirements' => [
+ 'fileId' => '.*',
+ ]
+ ],
]
];