2022-08-13 01:58:37 +00:00
|
|
|
<?php
|
|
|
|
return [
|
|
|
|
'routes' => [
|
2022-09-08 23:57:50 +00:00
|
|
|
// Days and folder API
|
2022-08-17 20:59:26 +00:00
|
|
|
['name' => 'page#main', 'url' => '/', 'verb' => 'GET'],
|
2022-09-08 23:57:50 +00:00
|
|
|
['name' => 'page#folder', 'url' => '/folders/{path}', 'verb' => 'GET',
|
2022-10-07 19:28:39 +00:00
|
|
|
'requirements' => [ 'path' => '.*' ],
|
|
|
|
'defaults' => [ 'path' => '' ]
|
2022-09-09 07:31:42 +00:00
|
|
|
],
|
2022-09-12 03:06:28 +00:00
|
|
|
['name' => 'page#favorites', 'url' => '/favorites', 'verb' => 'GET'],
|
2022-09-13 07:55:32 +00:00
|
|
|
['name' => 'page#videos', 'url' => '/videos', 'verb' => 'GET'],
|
2022-09-25 23:02:26 +00:00
|
|
|
['name' => 'page#archive', 'url' => '/archive', 'verb' => 'GET'],
|
2022-10-06 20:20:29 +00:00
|
|
|
['name' => 'page#thisday', 'url' => '/thisday', 'verb' => 'GET'],
|
2022-10-07 19:28:39 +00:00
|
|
|
['name' => 'page#people', 'url' => '/people/{name}', 'verb' => 'GET',
|
|
|
|
'requirements' => [ 'name' => '.*' ],
|
|
|
|
'defaults' => [ 'name' => '' ]
|
|
|
|
],
|
2022-10-06 23:28:35 +00:00
|
|
|
['name' => 'page#tags', 'url' => '/tags/{name}', 'verb' => 'GET',
|
2022-10-07 19:28:39 +00:00
|
|
|
'requirements' => [ 'name' => '.*' ],
|
|
|
|
'defaults' => [ 'name' => '' ]
|
2022-10-06 23:28:35 +00:00
|
|
|
],
|
2022-08-13 03:34:05 +00:00
|
|
|
|
2022-08-17 20:39:48 +00:00
|
|
|
// API
|
|
|
|
['name' => 'api#days', 'url' => '/api/days', 'verb' => 'GET'],
|
2022-10-06 20:37:12 +00:00
|
|
|
['name' => 'api#dayPost', 'url' => '/api/days', 'verb' => 'POST'],
|
2022-08-17 20:39:48 +00:00
|
|
|
['name' => 'api#day', 'url' => '/api/days/{id}', 'verb' => 'GET'],
|
2022-10-06 21:37:18 +00:00
|
|
|
['name' => 'api#tags', 'url' => '/api/tags', 'verb' => 'GET'],
|
2022-10-07 19:28:39 +00:00
|
|
|
['name' => 'api#faces', 'url' => '/api/faces', 'verb' => 'GET'],
|
|
|
|
['name' => 'api#facePreviews', 'url' => '/api/face-previews/{id}', 'verb' => 'GET'],
|
2022-09-25 13:21:40 +00:00
|
|
|
['name' => 'api#imageInfo', 'url' => '/api/info/{id}', 'verb' => 'GET'],
|
|
|
|
['name' => 'api#imageEdit', 'url' => '/api/edit/{id}', 'verb' => 'PATCH'],
|
2022-09-25 23:02:26 +00:00
|
|
|
['name' => 'api#archive', 'url' => '/api/archive/{id}', 'verb' => 'PATCH'],
|
2022-08-20 00:18:04 +00:00
|
|
|
|
|
|
|
// Config API
|
|
|
|
['name' => 'api#setUserConfig', 'url' => '/api/config/{key}', 'verb' => 'PUT'],
|
2022-08-13 01:58:37 +00:00
|
|
|
]
|
|
|
|
];
|