nextcloud-app-radio/appinfo/routes.php

27 lines
1.0 KiB
PHP
Raw 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
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'],
2020-10-08 21:13:33 +00:00
['name' => 'page#favorites', 'url' => '/', 'verb' => 'GET'],
['name' => 'page#recent', 'url' => '/', 'verb' => 'GET'],
['name' => 'page#categories', 'url' => '/', 'verb' => 'GET'],
['name' => 'page#top', 'url' => '/', 'verb' => 'GET'],
['name' => 'settings#getMenuState', 'url' => '/getMenuState', 'verb' => 'GET'],
['name' => 'settings#getVolumeState', 'url' => '/getVolumeState', 'verb' => 'GET'],
['name' => 'settings#saveMenuState', 'url' => '/saveMenuState', 'verb' => 'POST'],
['name' => 'settings#saveVolumeState', 'url' => '/saveVolumeState', 'verb' => 'POST'],
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
]
2018-08-11 12:53:01 +00:00
];