diff --git a/app/appConf/routes.php b/app/appConf/routes.php index db05b416..067bbce7 100644 --- a/app/appConf/routes.php +++ b/app/appConf/routes.php @@ -238,6 +238,14 @@ return [ 'action' => 'logout', 'controller' => DEFAULT_CONTROLLER, ], + 'increment' => [ + 'path' => '/{controller}/increment', + 'action' => 'increment', + 'verb' => 'post', + 'tokens' => [ + 'controller' => '[a-z_]+', + ], + ], 'update' => [ 'path' => '/{controller}/update', 'action' => 'update', diff --git a/app/bootstrap.php b/app/bootstrap.php index 1c1c224b..d949fc3d 100644 --- a/app/bootstrap.php +++ b/app/bootstrap.php @@ -35,7 +35,7 @@ use Zend\Diactoros\{Response, ServerRequestFactory}; // ----------------------------------------------------------------------------- // Setup DI container // ----------------------------------------------------------------------------- -return function (array $configArray = []) { +return function ($configArray = []) { $container = new Container(); // ------------------------------------------------------------------------- diff --git a/app/views/anime/edit.php b/app/views/anime/edit.php index 8dcd62b2..12f367e5 100644 --- a/app/views/anime/edit.php +++ b/app/views/anime/edit.php @@ -79,7 +79,9 @@