create('radio_index', '/') ->actionInclude('radio/index.php'); return [ 'resources' => [ 'station' => ['url' => '/stations'], 'station_api' => ['url' => '/api/0.1/stations'] ], 'routes' => [ ['name' => 'page#index', 'url' => '/', 'verb' => 'GET'], ['name' => 'settings#getMenuState', 'url' => '/getMenuState', 'verb' => 'GET'], ['name' => 'settings#saveMenuState', 'url' => '/saveMenuState', 'verb' => 'POST'], ['name' => 'station_api#preflighted_cors', 'url' => '/api/0.1/{path}', 'verb' => 'OPTIONS', 'requirements' => ['path' => '.+']] ] ];