diff --git a/config/module.config.php b/config/module.config.php index 0182677..47779ce 100644 --- a/config/module.config.php +++ b/config/module.config.php @@ -39,6 +39,7 @@ 'route' => '/admin/user', 'defaults' => [ 'controller' => Controller\Substitute::class, + 'action' => 'substitute', ], ], 'may_terminate' => false, @@ -46,10 +47,7 @@ 'substitute' => [ 'type' => Segment::class, 'options' => [ - 'route' => '/[:action]/:user', - 'constraints' => [ - 'action' => 'substitute' - ], + 'route' => '/substitute/:user', ], ], 'unsubstitute' => [