/var/www/vhosts/ihelp.ro/_OLD/config
Edit: /var/www/vhosts/ihelp.ro/_OLD/config/routes.php (3669B)
setRouteClass(DashedRoute::class);
$routes->scope('/', function (RouteBuilder $builder) {
/*
* Here, we are connecting '/' (base path) to a controller called 'Pages',
* its action called 'display', and we pass a param to select the view file
* to use (in this case, templates/Pages/home.php)...
*/
$builder->connect('/', ['controller' => 'Pages', 'action' => 'home' ]);
$builder->connect('/{slug}/p/{uuid}', ['controller' => 'Products', 'action' => 'view' ], ['pass' => ['slug', 'uuid']]);
$builder->connect('/{slug}/c/{uuid}', ['controller' => 'Causes', 'action' => 'view' ], ['pass' => ['slug', 'uuid']]);
$builder->connect('/{slug}/ca', ['controller' => 'Categories', 'action' => 'view' ], ['pass' => ['slug']]);
// Users
$builder->connect('/register', ['controller' =>'Users', 'action'=>'add']);
$builder->connect('/logout', ['controller' =>'Users', 'action'=>'logout']);
$builder->connect('/login', ['controller' =>'Users', 'action'=>'login']);
// Profiles
$builder->connect('/dashboard', ['controller' =>'Profiles', 'action'=>'view']);
// Pages
$builder->connect('/contact', ['controller' => 'Pages', 'action' => 'contact']);
/*
* ...and connect the rest of 'Pages' controller's URLs.
*/
//$builder->connect('/pages/*', ['controller' => 'Pages', 'action' => 'display']);
/*
* Connect catchall routes for all controllers.
*
* The `fallbacks` method is a shortcut for
*
* ```
* $builder->connect('/:controller', ['action' => 'index']);
* $builder->connect('/:controller/:action/*', []);
* ```
*
* You can remove these routes once you've connected the
* routes you want in your application.
*/
$builder->fallbacks();
});
/*
* If you need a different set of middleware or none at all,
* open new scope and define routes there.
*
* ```
* $routes->scope('/api', function (RouteBuilder $builder) {
* // No $builder->applyMiddleware() here.
* // Connect API actions here.
* });
* ```
*/