[ 'favorite' => ['url' => '/api/favorites'], 'recent' => ['url' => '/api/recent'], ], 'routes' => [ // Web page templates [ 'name' => 'page#index', 'url' => '/', 'verb' => 'GET' ], [ 'name' => 'page#index', 'url' => '/top', 'verb' => 'GET', 'postfix' => 'top' ], [ 'name' => 'page#index', 'url' => '/recent', 'verb' => 'GET', 'postfix' => 'recent' ], [ 'name' => 'page#index', 'url' => '/new', 'verb' => 'GET', 'postfix' => 'new' ], [ 'name' => 'page#index', 'url' => '/favorites', 'verb' => 'GET', 'postfix' => 'favorites' ], [ 'name' => 'page#index', 'url' => '/categories', 'verb' => 'GET', 'postfix' => 'categories' ], [ 'name' => 'page#index', 'url' => '/search', 'verb' => 'GET', 'postfix' => 'search', ], // Settings [ 'name' => 'settings#set_menu_state', 'url' => '/settings/menuState', 'verb' => 'POST' ], [ 'name' => 'settings#get_menu_state', 'url' => '/settings/menuState', 'verb' => 'GET' ], [ 'name' => 'settings#set_volume_state', 'url' => '/settings/volumeState', 'verb' => 'POST' ], [ 'name' => 'settings#get_volume_state', 'url' => '/settings/volumeState', 'verb' => 'GET' ], // Api [ 'name' => 'favorite_api#preflighted_cors', 'url' => '/api/0.1/{path}', 'verb' => 'OPTIONS', 'requirements' => ['path' => '.+'] ], [ 'name' => 'recent_api#preflighted_cors', 'url' => '/api/0.1/{path}', 'verb' => 'OPTIONS', 'requirements' => ['path' => '.+'] ] ] ];