2022-08-13 01:58:37 +00:00
|
|
|
<?php
|
|
|
|
return [
|
|
|
|
'routes' => [
|
2022-08-20 00:18:04 +00:00
|
|
|
// Days and album API
|
2022-08-17 20:59:26 +00:00
|
|
|
['name' => 'page#main', 'url' => '/', 'verb' => 'GET'],
|
2022-08-18 03:24:53 +00:00
|
|
|
['name' => 'page#album', 'url' => '/albums/{path}', 'verb' => 'GET',
|
2022-08-17 20:39:48 +00:00
|
|
|
'requirements' => [
|
|
|
|
'path' => '.*',
|
|
|
|
],
|
|
|
|
'defaults' => [
|
|
|
|
'path' => '',
|
|
|
|
]
|
|
|
|
],
|
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'],
|
|
|
|
['name' => 'api#day', 'url' => '/api/days/{id}', 'verb' => 'GET'],
|
|
|
|
['name' => 'api#folder', 'url' => '/api/folder/{folder}', 'verb' => 'GET'],
|
|
|
|
['name' => 'api#folderDay', 'url' => '/api/folder/{folder}/{dayId}', 'verb' => 'GET'],
|
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
|
|
|
]
|
|
|
|
];
|