Skip to content
Snippets Groups Projects
Commit a3a5b99a authored by Demian Katz's avatar Demian Katz
Browse files

Simplified router configuration.

parent f0e42fa5
No related merge requests found
......@@ -7,7 +7,7 @@ $config = array(
'default' => array(
'type' => 'Zend\Mvc\Router\Http\Segment',
'options' => array(
'route' => '/[:controller[/:action]]',
'route' => '/[:controller[/[:action]]]',
'constraints' => array(
'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
......@@ -18,19 +18,6 @@ $config = array(
),
),
),
// TODO: can we address all three default route situations (install, install/, install/home) with
// a single route definition? Currently, we need this case to address trailing slash + missing action.
'default-without-action' => array(
'type' => 'Zend\Mvc\Router\Http\Regex',
'options' => array(
'regex' => '/(?<controller>[a-zA-Z][a-zA-Z0-9_-]*)(/?)',
'defaults' => array(
'controller' => 'index',
'action' => 'Home',
),
'spec' => '/%controller%',
),
),
'legacy-alphabrowse-results' => array(
'type' => 'Zend\Mvc\Router\Http\Literal',
'options' => array(
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment