diff --git a/app/config/routes.php b/app/config/routes.php
index 2b8e18ba..0354f384 100644
--- a/app/config/routes.php
+++ b/app/config/routes.php
@@ -11,21 +11,33 @@ return [
'update' => [
'path' => '/{controller}/update',
'action' => 'update',
- 'verb' => 'post'
+ 'verb' => 'post',
+ 'tokens' => [
+ 'controller' => '[a-z_]+'
+ ]
],
'login_form' => [
'path' => '/{controller}/login',
'action' => 'login',
- 'verb' => 'get'
+ 'verb' => 'get',
+ 'tokens' => [
+ 'controller' => '[a-z_]+'
+ ]
],
'login_action' => [
'path' => '/{controller}/login',
'action' => 'login_action',
- 'verb' => 'post'
+ 'verb' => 'post',
+ 'tokens' => [
+ 'controller' => '[a-z_]+'
+ ]
],
'logout' => [
'path' => '/{controller}/logout',
- 'action' => 'logout'
+ 'action' => 'logout',
+ 'tokens' => [
+ 'controller' => '[a-z_]+'
+ ]
],
],
// Routes on collection controller
diff --git a/app/views/header.php b/app/views/header.php
index 3ae044fb..0bd39668 100644
--- a/app/views/header.php
+++ b/app/views/header.php
@@ -17,11 +17,11 @@
[= ucfirst($other_type) ?> List]
-
+ is_authenticated()): ?>
[">Logout]
- [">= $config->whose_list ?>'s Login]
-
+ [">= $config->get('whose_list') ?>'s Login]
+