HummingBirdAnimeClient/app/config/routes.php

180 lines
3.8 KiB
PHP
Raw Normal View History

2015-05-22 12:36:26 -04:00
<?php
return [
2015-05-27 09:03:42 -04:00
'anime' => [
'index' => [
'path' => '/',
'controller' => 'AnimeController',
'action' => 'redirect',
'params' => [
'url' => '', // Determined by config
'code' => '301'
]
],
2015-05-27 09:03:42 -04:00
'all' => [
'path' => '/all{/view}',
2015-05-27 09:03:42 -04:00
'controller' => 'AnimeController',
'action' => 'anime_list',
'params' => [
'type' => 'all',
'title' => WHOSE . " Anime List &middot; All"
],
'tokens' => [
'view' => '[a-z_]+'
]
],
'watching' => [
'path' => '/watching{/view}',
'controller' => 'AnimeController',
'action' => 'anime_list',
'params' => [
'type' => 'currently-watching',
'title' => WHOSE . " Anime List &middot; Watching"
],
'tokens' => [
'view' => '[a-z_]+'
]
2015-05-27 09:03:42 -04:00
],
'plan_to_watch' => [
'path' => '/plan_to_watch{/view}',
2015-05-27 09:03:42 -04:00
'controller' => 'AnimeController',
'action' => 'anime_list',
'params' => [
'type' => 'plan-to-watch',
'title' => WHOSE . " Anime List &middot; Plan to Watch"
],
'tokens' => [
'view' => '[a-z_]+'
2015-05-27 09:03:42 -04:00
]
],
'on_hold' => [
'path' => '/on_hold{/view}',
2015-05-27 09:03:42 -04:00
'controller' => 'AnimeController',
'action' => 'anime_list',
'params' => [
'type' => 'on-hold',
'title' => WHOSE . " Anime List &middot; On Hold"
],
'tokens' => [
'view' => '[a-z_]+'
2015-05-27 09:03:42 -04:00
]
],
'dropped' => [
'path' => '/dropped{/view}',
2015-05-27 09:03:42 -04:00
'controller' => 'AnimeController',
'action' => 'anime_list',
'params' => [
'type' => 'dropped',
'title' => WHOSE . " Anime List &middot; Dropped"
],
'tokens' => [
'view' => '[a-z_]+'
2015-05-27 09:03:42 -04:00
]
],
'completed' => [
'path' => '/completed{/view}',
2015-05-27 09:03:42 -04:00
'controller' => 'AnimeController',
'action' => 'anime_list',
'params' => [
'type' => 'completed',
'title' => WHOSE . " Anime List &middot; Completed"
],
'tokens' => [
'view' => '[a-z_]+'
2015-05-27 09:03:42 -04:00
]
],
'collection' => [
'path' => '/collection{/view}',
'controller' => 'AnimeController',
'action' => 'collection',
'params' => [],
'tokens' => [
'view' => '[a-z_]+'
]
2015-05-22 12:36:26 -04:00
]
],
2015-05-27 09:03:42 -04:00
'manga' => [
'index' => [
'path' => '/',
'controller' => 'MangaController',
'action' => 'redirect',
'params' => [
'url' => '', // Determined by config
'code' => '301',
'type' => 'manga'
]
],
2015-05-27 09:03:42 -04:00
'all' => [
'path' => '/all{/view}',
2015-05-27 09:03:42 -04:00
'controller' => 'MangaController',
'action' => 'manga_list',
'params' => [
'type' => 'all',
'title' => WHOSE . " Manga List &middot; All"
],
'tokens' => [
'view' => '[a-z_]+'
]
],
'reading' => [
'path' => '/reading{/view}',
'controller' => 'MangaController',
'action' => 'manga_list',
'params' => [
'type' => 'Reading',
'title' => WHOSE . " Manga List &middot; Reading"
],
'tokens' => [
'view' => '[a-z_]+'
]
2015-05-27 09:03:42 -04:00
],
'plan_to_read' => [
'path' => '/plan_to_read{/view}',
2015-05-27 09:03:42 -04:00
'controller' => 'MangaController',
'action' => 'manga_list',
'params' => [
'type' => 'Plan to Read',
'title' => WHOSE . " Manga List &middot; Plan to Read"
],
'tokens' => [
'view' => '[a-z_]+'
2015-05-27 09:03:42 -04:00
]
],
'on_hold' => [
'path' => '/on_hold{/view}',
2015-05-27 09:03:42 -04:00
'controller' => 'MangaController',
'action' => 'manga_list',
'params' => [
'type' => 'On Hold',
'title' => WHOSE . " Manga List &middot; On Hold"
],
'tokens' => [
'view' => '[a-z_]+'
2015-05-27 09:03:42 -04:00
]
],
'dropped' => [
'path' => '/dropped{/view}',
2015-05-27 09:03:42 -04:00
'controller' => 'MangaController',
'action' => 'manga_list',
'params' => [
'type' => 'Dropped',
'title' => WHOSE . " Manga List &middot; Dropped"
],
'tokens' => [
'view' => '[a-z_]+'
2015-05-27 09:03:42 -04:00
]
],
'completed' => [
'path' => '/completed{/view}',
2015-05-27 09:03:42 -04:00
'controller' => 'MangaController',
'action' => 'manga_list',
'params' => [
'type' => 'Completed',
'title' => WHOSE . " Manga List &middot; Completed"
],
'tokens' => [
'view' => '[a-z_]+'
2015-05-27 09:03:42 -04:00
]
],
2015-05-22 12:36:26 -04:00
]
];