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:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-11-14 14:33:01 +0300
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-11-14 14:33:01 +0300
commit00ec425d5a0cc897b62d9bbaccc0baaf8f646cea (patch)
treec368a0fe91dc9db9aabaf3ce369197398a049a16 /appinfo
parent1cc1366eb3497830ed6916c092b856d9ccea5b3d (diff)
Fix default usable state
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/routes.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index cd687a46..9d5d93ef 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -24,13 +24,19 @@
return [
'routes' => [
['name' => 'page#index', 'url' => '/', 'verb' => 'GET'],
- //['name' => 'page#index', 'url' => '/{path}', 'verb' => 'GET', 'postfix' => 'folder', 'requirements' => ['path' => '.+']],
+ ['name' => 'page#index', 'url' => '/albums', 'verb' => 'GET', 'postfix' => 'albums'],
+ ['name' => 'page#index', 'url' => '/albums/{tag}', 'verb' => 'GET', 'postfix' => 'albumsx'],
+ ['name' => 'page#index', 'url' => '/favorites', 'verb' => 'GET', 'postfix' => 'favorites'],
+ ['name' => 'page#index', 'url' => '/shared', 'verb' => 'GET', 'postfix' => 'shared'],
+ ['name' => 'page#index', 'url' => '/tags/{tag}', 'verb' => 'GET', 'postfix' => 'tags', 'requirements' => ['tag' => '.*']],
+
+ // apis
[
'name' => 'albums#myAlbums',
'url' => '/api/v1/albums/{path}',
'verb' => 'GET',
'requirements' => [
- 'path' => '.+',
+ 'path' => '.*',
],
'defaults' => [
'path' => '',
@@ -41,7 +47,7 @@ return [
'url' => '/api/v1/shared/{path}',
'verb' => 'GET',
'requirements' => [
- 'path' => '.+',
+ 'path' => '.*',
],
'defaults' => [
'path' => '',