Add to your composer.json:
"require": {
"nextras/static-router": "~2.0"
}
use Nextras\Routing\StaticRouter;
$router = new StaticRouter(['Homepage:default' => 'index.php'], StaticRouter::ONE_WAY);
$router = new StaticRouter([
'Homepage:default' => '',
'Auth:signIn' => 'sign-in',
'Auth:signOut' => 'sign-out',
'Auth:signUp' => 'sign-up',
]);