Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/photos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-11-13 11:17:42 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2019-11-13 11:17:42 +0300
commit75c185233fe8b1963ed7e20a5539396766624816 (patch)
tree34a2308c34c91cbe6c572ba7fafc65dcf56aa109 /appinfo
parentf895fa76ee1ee7659f9ce24b3d8df5c661172d98 (diff)
Move to API route
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/routes.php24
1 files changed, 22 insertions, 2 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index e862093f..cd687a46 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -25,7 +25,27 @@ return [
'routes' => [
['name' => 'page#index', 'url' => '/', 'verb' => 'GET'],
//['name' => 'page#index', 'url' => '/{path}', 'verb' => 'GET', 'postfix' => 'folder', 'requirements' => ['path' => '.+']],
- ['name' => 'albums#myAlbums', 'url' => '/albums', 'verb' => 'GET'],
- ['name' => 'albums#sharedAlbums', 'url' => '/shared', 'verb' => 'GET'],
+ [
+ 'name' => 'albums#myAlbums',
+ 'url' => '/api/v1/albums/{path}',
+ 'verb' => 'GET',
+ 'requirements' => [
+ 'path' => '.+',
+ ],
+ 'defaults' => [
+ 'path' => '',
+ ],
+ ],
+ [
+ 'name' => 'albums#sharedAlbums',
+ 'url' => '/api/v1/shared/{path}',
+ 'verb' => 'GET',
+ 'requirements' => [
+ 'path' => '.+',
+ ],
+ 'defaults' => [
+ 'path' => '',
+ ],
+ ],
]
];