nextcloud-app-radio/appinfo/routes.php

28 lines
675 B
PHP
Raw Permalink Normal View History

2016-11-17 22:07:22 +00:00
<?php
2017-02-16 12:00:43 +00:00
2017-02-21 16:57:30 +00:00
/** @var $this \OCP\Route\IRouter */
2016-11-17 22:07:22 +00:00
$this->create('radio_index', '/')
->actionInclude('radio/index.php');
2017-01-08 08:36:13 +00:00
2017-02-21 16:57:30 +00:00
/** return [
'resources' => [
'station' => ['url' => '/stations'],
],
'routes' => [
['name' => 'page#index', 'url' => '/', 'verb' => 'GET'],
]
]; **/
2017-01-08 08:36:13 +00:00
return [
'resources' => [
'station' => ['url' => '/stations'],
2017-02-21 16:57:30 +00:00
'station_api' => ['url' => '/api/0.1/stations']
2017-01-08 08:36:13 +00:00
],
'routes' => [
['name' => 'page#index', 'url' => '/', 'verb' => 'GET'],
2017-02-21 16:57:30 +00:00
['name' => 'station_api#preflighted_cors', 'url' => '/api/0.1/{path}',
'verb' => 'OPTIONS', 'requirements' => ['path' => '.+']]
2017-01-08 08:36:13 +00:00
]
2017-02-21 16:57:30 +00:00
];