2021-08-21 10:58:00 +00:00
|
|
|
<?php
|
2021-08-21 14:17:14 +00:00
|
|
|
|
2021-08-21 10:58:00 +00:00
|
|
|
return [
|
2021-08-21 14:17:14 +00:00
|
|
|
'resources' => [
|
|
|
|
'note' => ['url' => '/notes'],
|
|
|
|
'note_api' => ['url' => '/api/0.1/notes']
|
|
|
|
],
|
|
|
|
'routes' => [
|
|
|
|
['name' => 'page#index', 'url' => '/', 'verb' => 'GET'],
|
|
|
|
['name' => 'note_api#preflighted_cors', 'url' => '/api/0.1/{path}',
|
|
|
|
'verb' => 'OPTIONS', 'requirements' => ['path' => '.+']]
|
|
|
|
]
|
2021-08-21 10:58:00 +00:00
|
|
|
];
|