From a761eec6b8fdd99e5400c673c7ff8731a0f4cb50 Mon Sep 17 00:00:00 2001 From: Derek Illchuk Date: Wed, 13 Sep 2017 11:53:30 -0500 Subject: [PATCH] Nail down 'substitute' action. --- config/module.config.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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' => [