this is my router:
<?php
$di['router'] = function() {
$router = new \Phalcon\Mvc\Router(true);
$router->setDefaultModule('frontend');
$router->add('/admin', array(
'module' => 'backend',
'controller' => 'index',
'action' => 'index'
));
$router->add('/admin/', array(
'module' => 'backend',
'controller' => 'index',
'action' => 'index'
));
$router->add('/admin/:controller/:action/:params', array(
'module' => 'backend',
'controller' => 1,
'action' => 2,
'params' => 3
));
$router->add('/admin/:controller', array(
'module' => 'backend',
'controller' => 1,
'action' => 'index'
));
$router->add('/', array(
'module' => 'frontend',
'controller' => 'index',
'action' => 'index'
));
$router->add('/:controller/:action:(new|[0-9]+)', array(
'module' => 'frontend',
'controller' => 1,
'action' => 2,
'id' => 3
));
$router->add('/admin/:controller/:action:(new|[a-zA-Z\d_]+)', array(
'module' => 'backend',
'controller' => 1,
'action' => 2,
'qid' => 3
));
return $router;
};
?>
Know I want to set my site on construction mode but for users only (except /admin)
how I can do this?