2015-05-22 12:36:26 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
return [
|
2015-06-24 16:01:35 -04:00
|
|
|
// Routes on all controllers
|
|
|
|
'common' => [
|
|
|
|
'update' => [
|
|
|
|
'path' => '/update',
|
|
|
|
'action' => ['update'],
|
|
|
|
'verb' => 'post'
|
|
|
|
],
|
|
|
|
'login_form' => [
|
|
|
|
'path' => '/login',
|
|
|
|
'action' => ['login'],
|
|
|
|
'verb' => 'get'
|
|
|
|
],
|
|
|
|
'login_action' => [
|
|
|
|
'path' => '/login',
|
|
|
|
'action' => ['login_action'],
|
|
|
|
'verb' => 'post'
|
|
|
|
],
|
|
|
|
'logout' => [
|
|
|
|
'path' => '/logout',
|
|
|
|
'action' => ['logout']
|
|
|
|
],
|
|
|
|
],
|
|
|
|
// Routes on anime controller
|
2015-05-27 09:03:42 -04:00
|
|
|
'anime' => [
|
2015-06-16 11:11:35 -04:00
|
|
|
'index' => [
|
|
|
|
'path' => '/',
|
2015-06-24 16:01:35 -04:00
|
|
|
'action' => ['redirect'],
|
2015-06-16 11:11:35 -04:00
|
|
|
'params' => [
|
|
|
|
'url' => '', // Determined by config
|
|
|
|
'code' => '301'
|
|
|
|
]
|
|
|
|
],
|
2015-07-02 14:04:04 -04:00
|
|
|
'search' => [
|
|
|
|
'path' => '/search',
|
|
|
|
'action' => ['search'],
|
|
|
|
],
|
2015-05-27 09:03:42 -04:00
|
|
|
'all' => [
|
2015-06-16 11:11:35 -04:00
|
|
|
'path' => '/all{/view}',
|
2015-06-24 16:01:35 -04:00
|
|
|
'action' => ['anime_list'],
|
2015-06-11 16:44:52 -04:00
|
|
|
'params' => [
|
|
|
|
'type' => 'all',
|
2015-06-16 11:11:35 -04:00
|
|
|
'title' => WHOSE . " Anime List · All"
|
|
|
|
],
|
|
|
|
'tokens' => [
|
|
|
|
'view' => '[a-z_]+'
|
2015-06-11 16:44:52 -04:00
|
|
|
]
|
|
|
|
],
|
2015-06-16 11:11:35 -04:00
|
|
|
'watching' => [
|
|
|
|
'path' => '/watching{/view}',
|
2015-06-24 16:01:35 -04:00
|
|
|
'action' => ['anime_list'],
|
2015-06-11 16:44:52 -04:00
|
|
|
'params' => [
|
|
|
|
'type' => 'currently-watching',
|
2015-06-16 11:11:35 -04:00
|
|
|
'title' => WHOSE . " Anime List · Watching"
|
|
|
|
],
|
|
|
|
'tokens' => [
|
|
|
|
'view' => '[a-z_]+'
|
2015-06-11 16:44:52 -04:00
|
|
|
]
|
2015-05-27 09:03:42 -04:00
|
|
|
],
|
|
|
|
'plan_to_watch' => [
|
2015-06-16 11:11:35 -04:00
|
|
|
'path' => '/plan_to_watch{/view}',
|
2015-06-24 16:01:35 -04:00
|
|
|
'action' => ['anime_list'],
|
2015-05-27 09:03:42 -04:00
|
|
|
'params' => [
|
2015-06-11 16:44:52 -04:00
|
|
|
'type' => 'plan-to-watch',
|
2015-06-16 11:11:35 -04:00
|
|
|
'title' => WHOSE . " Anime List · Plan to Watch"
|
|
|
|
],
|
|
|
|
'tokens' => [
|
|
|
|
'view' => '[a-z_]+'
|
2015-05-27 09:03:42 -04:00
|
|
|
]
|
|
|
|
],
|
|
|
|
'on_hold' => [
|
2015-06-16 11:11:35 -04:00
|
|
|
'path' => '/on_hold{/view}',
|
2015-06-24 16:01:35 -04:00
|
|
|
'action' => ['anime_list'],
|
2015-05-27 09:03:42 -04:00
|
|
|
'params' => [
|
2015-06-11 16:44:52 -04:00
|
|
|
'type' => 'on-hold',
|
2015-06-16 11:11:35 -04:00
|
|
|
'title' => WHOSE . " Anime List · On Hold"
|
|
|
|
],
|
|
|
|
'tokens' => [
|
|
|
|
'view' => '[a-z_]+'
|
2015-05-27 09:03:42 -04:00
|
|
|
]
|
|
|
|
],
|
|
|
|
'dropped' => [
|
2015-06-16 11:11:35 -04:00
|
|
|
'path' => '/dropped{/view}',
|
2015-06-24 16:01:35 -04:00
|
|
|
'action' => ['anime_list'],
|
2015-05-27 09:03:42 -04:00
|
|
|
'params' => [
|
2015-06-11 16:44:52 -04:00
|
|
|
'type' => 'dropped',
|
2015-06-16 11:11:35 -04:00
|
|
|
'title' => WHOSE . " Anime List · Dropped"
|
|
|
|
],
|
|
|
|
'tokens' => [
|
|
|
|
'view' => '[a-z_]+'
|
2015-05-27 09:03:42 -04:00
|
|
|
]
|
|
|
|
],
|
|
|
|
'completed' => [
|
2015-06-16 11:11:35 -04:00
|
|
|
'path' => '/completed{/view}',
|
2015-06-24 16:01:35 -04:00
|
|
|
'action' => ['anime_list'],
|
2015-05-27 09:03:42 -04:00
|
|
|
'params' => [
|
2015-06-11 16:44:52 -04:00
|
|
|
'type' => 'completed',
|
2015-06-16 11:11:35 -04:00
|
|
|
'title' => WHOSE . " Anime List · Completed"
|
|
|
|
],
|
|
|
|
'tokens' => [
|
|
|
|
'view' => '[a-z_]+'
|
2015-05-27 09:03:42 -04:00
|
|
|
]
|
|
|
|
],
|
2015-07-02 14:04:04 -04:00
|
|
|
'collection_add_form' => [
|
|
|
|
'path' => '/collection/add',
|
|
|
|
'action' => ['collection_form'],
|
|
|
|
'params' => [],
|
|
|
|
],
|
|
|
|
'collection_edit_form' => [
|
|
|
|
'path' => '/collection/edit/{id}',
|
|
|
|
'action' => ['collection_form'],
|
|
|
|
'tokens' => [
|
|
|
|
'id' => '[0-9]+'
|
|
|
|
]
|
|
|
|
],
|
|
|
|
'collection_add' => [
|
|
|
|
'path' => '/collection/add',
|
|
|
|
'action' => ['collection_add'],
|
|
|
|
'verb' => 'post'
|
|
|
|
],
|
|
|
|
'collection_edit' => [
|
|
|
|
'path' => '/collection/edit',
|
|
|
|
'action' => ['collection_edit'],
|
|
|
|
'verb' => 'post'
|
|
|
|
],
|
2015-06-09 18:18:53 -04:00
|
|
|
'collection' => [
|
2015-07-02 14:04:04 -04:00
|
|
|
'path' => '/collection/view{/view}',
|
2015-06-24 16:01:35 -04:00
|
|
|
'action' => ['collection'],
|
2015-06-16 11:11:35 -04:00
|
|
|
'params' => [],
|
|
|
|
'tokens' => [
|
|
|
|
'view' => '[a-z_]+'
|
|
|
|
]
|
2015-07-02 14:04:04 -04:00
|
|
|
],
|
2015-05-22 12:36:26 -04:00
|
|
|
],
|
2015-05-27 09:03:42 -04:00
|
|
|
'manga' => [
|
2015-06-16 11:11:35 -04:00
|
|
|
'index' => [
|
|
|
|
'path' => '/',
|
2015-06-24 16:01:35 -04:00
|
|
|
'action' => ['redirect'],
|
2015-06-16 11:11:35 -04:00
|
|
|
'params' => [
|
|
|
|
'url' => '', // Determined by config
|
|
|
|
'code' => '301',
|
|
|
|
'type' => 'manga'
|
|
|
|
]
|
|
|
|
],
|
2015-05-27 09:03:42 -04:00
|
|
|
'all' => [
|
2015-06-16 11:11:35 -04:00
|
|
|
'path' => '/all{/view}',
|
2015-06-24 16:01:35 -04:00
|
|
|
'action' => ['manga_list'],
|
2015-06-11 16:44:52 -04:00
|
|
|
'params' => [
|
|
|
|
'type' => 'all',
|
|
|
|
'title' => WHOSE . " Manga List · All"
|
2015-06-16 11:11:35 -04:00
|
|
|
],
|
|
|
|
'tokens' => [
|
|
|
|
'view' => '[a-z_]+'
|
2015-06-11 16:44:52 -04:00
|
|
|
]
|
|
|
|
],
|
2015-06-16 11:11:35 -04:00
|
|
|
'reading' => [
|
|
|
|
'path' => '/reading{/view}',
|
2015-06-24 16:01:35 -04:00
|
|
|
'action' => ['manga_list'],
|
2015-06-11 16:44:52 -04:00
|
|
|
'params' => [
|
|
|
|
'type' => 'Reading',
|
|
|
|
'title' => WHOSE . " Manga List · Reading"
|
2015-06-16 11:11:35 -04:00
|
|
|
],
|
|
|
|
'tokens' => [
|
|
|
|
'view' => '[a-z_]+'
|
2015-06-11 16:44:52 -04:00
|
|
|
]
|
2015-05-27 09:03:42 -04:00
|
|
|
],
|
|
|
|
'plan_to_read' => [
|
2015-06-16 11:11:35 -04:00
|
|
|
'path' => '/plan_to_read{/view}',
|
2015-06-24 16:01:35 -04:00
|
|
|
'action' => ['manga_list'],
|
2015-05-27 09:03:42 -04:00
|
|
|
'params' => [
|
2015-06-11 16:44:52 -04:00
|
|
|
'type' => 'Plan to Read',
|
|
|
|
'title' => WHOSE . " Manga List · Plan to Read"
|
2015-06-16 11:11:35 -04:00
|
|
|
],
|
|
|
|
'tokens' => [
|
|
|
|
'view' => '[a-z_]+'
|
2015-05-27 09:03:42 -04:00
|
|
|
]
|
|
|
|
],
|
|
|
|
'on_hold' => [
|
2015-06-16 11:11:35 -04:00
|
|
|
'path' => '/on_hold{/view}',
|
2015-06-24 16:01:35 -04:00
|
|
|
'action' => ['manga_list'],
|
2015-05-27 09:03:42 -04:00
|
|
|
'params' => [
|
2015-06-11 16:44:52 -04:00
|
|
|
'type' => 'On Hold',
|
|
|
|
'title' => WHOSE . " Manga List · On Hold"
|
2015-06-16 11:11:35 -04:00
|
|
|
],
|
|
|
|
'tokens' => [
|
|
|
|
'view' => '[a-z_]+'
|
2015-05-27 09:03:42 -04:00
|
|
|
]
|
|
|
|
],
|
|
|
|
'dropped' => [
|
2015-06-16 11:11:35 -04:00
|
|
|
'path' => '/dropped{/view}',
|
2015-06-24 16:01:35 -04:00
|
|
|
'action' => ['manga_list'],
|
2015-05-27 09:03:42 -04:00
|
|
|
'params' => [
|
2015-06-11 16:44:52 -04:00
|
|
|
'type' => 'Dropped',
|
|
|
|
'title' => WHOSE . " Manga List · Dropped"
|
2015-06-16 11:11:35 -04:00
|
|
|
],
|
|
|
|
'tokens' => [
|
|
|
|
'view' => '[a-z_]+'
|
2015-05-27 09:03:42 -04:00
|
|
|
]
|
|
|
|
],
|
|
|
|
'completed' => [
|
2015-06-16 11:11:35 -04:00
|
|
|
'path' => '/completed{/view}',
|
2015-06-24 16:01:35 -04:00
|
|
|
'action' => ['manga_list'],
|
2015-05-27 09:03:42 -04:00
|
|
|
'params' => [
|
2015-06-11 16:44:52 -04:00
|
|
|
'type' => 'Completed',
|
|
|
|
'title' => WHOSE . " Manga List · Completed"
|
2015-06-16 11:11:35 -04:00
|
|
|
],
|
|
|
|
'tokens' => [
|
|
|
|
'view' => '[a-z_]+'
|
2015-05-27 09:03:42 -04:00
|
|
|
]
|
2015-06-17 08:50:01 -04:00
|
|
|
]
|
2015-05-22 12:36:26 -04:00
|
|
|
]
|
|
|
|
];
|