nextcloud-app-radio/appinfo/routes.php

25 lines
915 B
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'],
2018-08-12 15:19:04 +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'],
2018-08-11 12:53:01 +00:00
['name' => 'settings#getMenuState', 'url' => '/getMenuState', 'verb' => 'GET'],
['name' => 'settings#saveMenuState', 'url' => '/saveMenuState', '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
];