2015-05-22 12:36:26 -04:00
|
|
|
<?php
|
2015-11-16 11:40:01 -05:00
|
|
|
/**
|
|
|
|
* Hummingbird Anime Client
|
|
|
|
*
|
|
|
|
* An API client for Hummingbird to manage anime and manga watch lists
|
|
|
|
*
|
|
|
|
* @package HummingbirdAnimeClient
|
|
|
|
* @author Timothy J. Warren
|
|
|
|
* @copyright Copyright (c) 2015
|
|
|
|
* @link https://github.com/timw4mail/HummingBirdAnimeClient
|
|
|
|
* @license MIT
|
|
|
|
*/
|
2015-05-22 12:36:26 -04:00
|
|
|
|
|
|
|
return [
|
2015-09-16 12:25:35 -04:00
|
|
|
'convention' => [
|
|
|
|
'default_namespace' => '\\Aviat\\AnimeClient\\Controller',
|
|
|
|
'default_controller' => '\\Aviat\\AnimeClient\\Controller\\Anime',
|
2015-11-13 11:34:30 -05:00
|
|
|
'default_method' => 'index',
|
|
|
|
'404_method' => 'not_found'
|
2015-09-16 12:25:35 -04:00
|
|
|
],
|
2016-01-04 10:53:03 -05:00
|
|
|
// Routes on anime collection controller
|
|
|
|
'anime' => [
|
|
|
|
'anime_add_form' => [
|
|
|
|
'path' => '/anime/add',
|
|
|
|
'action' => 'add_form',
|
|
|
|
'verb' => 'get'
|
2015-06-24 16:01:35 -04:00
|
|
|
],
|
2016-01-04 10:53:03 -05:00
|
|
|
'anime_add' => [
|
|
|
|
'path' => '/anime/add',
|
|
|
|
'action' => 'add',
|
|
|
|
'verb' => 'post'
|
|
|
|
]
|
|
|
|
],
|
|
|
|
'manga' => [
|
|
|
|
|
2015-09-14 10:54:50 -04:00
|
|
|
],
|
|
|
|
'collection' => [
|
2015-12-08 14:52:59 -05:00
|
|
|
'collection_search' => [
|
|
|
|
'path' => '/collection/search',
|
|
|
|
'action' => 'search'
|
|
|
|
],
|
2015-09-14 10:54:50 -04:00
|
|
|
'collection_add_form' => [
|
|
|
|
'path' => '/collection/add',
|
2015-10-05 16:54:25 -04:00
|
|
|
'action' => 'form',
|
2015-09-14 10:54:50 -04:00
|
|
|
'params' => [],
|
|
|
|
],
|
|
|
|
'collection_edit_form' => [
|
|
|
|
'path' => '/collection/edit/{id}',
|
2015-10-05 16:54:25 -04:00
|
|
|
'action' => 'form',
|
2015-09-14 10:54:50 -04:00
|
|
|
'tokens' => [
|
|
|
|
'id' => '[0-9]+'
|
|
|
|
]
|
|
|
|
],
|
|
|
|
'collection_add' => [
|
|
|
|
'path' => '/collection/add',
|
2015-10-05 16:54:25 -04:00
|
|
|
'action' => 'add',
|
2015-09-14 10:54:50 -04:00
|
|
|
'verb' => 'post'
|
|
|
|
],
|
|
|
|
'collection_edit' => [
|
|
|
|
'path' => '/collection/edit',
|
2015-10-05 16:54:25 -04:00
|
|
|
'action' => 'edit',
|
2015-09-14 10:54:50 -04:00
|
|
|
'verb' => 'post'
|
|
|
|
],
|
|
|
|
'collection' => [
|
|
|
|
'path' => '/collection/view{/view}',
|
2015-10-05 16:54:25 -04:00
|
|
|
'action' => 'index',
|
2015-09-14 10:54:50 -04:00
|
|
|
'params' => [],
|
|
|
|
'tokens' => [
|
|
|
|
'view' => '[a-z_]+'
|
|
|
|
]
|
|
|
|
],
|
2015-06-24 16:01:35 -04:00
|
|
|
],
|
2015-09-17 23:11:18 -04:00
|
|
|
];
|