<?php
$router->add("/admin/([a-zA-Z0-9_-]+)[/]?([a-zA-Z0-9_]+)?[/]?(/.*)*", array(
        'namespace' => 'App\Controllers\Admin',
        'controller' => 1,
        'action' => 2,
        'params' => 3
));
//when the action pattern matches is empty why the action value is 2, not the 'index' on linux