28 lines
675 B
PHP
28 lines
675 B
PHP
<?php
|
|
|
|
|
|
/** @var $this \OCP\Route\IRouter */
|
|
$this->create('radio_index', '/')
|
|
->actionInclude('radio/index.php');
|
|
|
|
/** return [
|
|
'resources' => [
|
|
'station' => ['url' => '/stations'],
|
|
],
|
|
'routes' => [
|
|
['name' => 'page#index', 'url' => '/', 'verb' => 'GET'],
|
|
]
|
|
]; **/
|
|
|
|
|
|
return [
|
|
'resources' => [
|
|
'station' => ['url' => '/stations'],
|
|
'station_api' => ['url' => '/api/0.1/stations']
|
|
],
|
|
'routes' => [
|
|
['name' => 'page#index', 'url' => '/', 'verb' => 'GET'],
|
|
['name' => 'station_api#preflighted_cors', 'url' => '/api/0.1/{path}',
|
|
'verb' => 'OPTIONS', 'requirements' => ['path' => '.+']]
|
|
]
|
|
]; |