sdwebserver/app/Config/Routes.php

13 lines
351 B
PHP
Raw Normal View History

2022-03-14 19:13:10 +01:00
<?php
2024-04-07 22:17:30 +02:00
use CodeIgniter\Router\RouteCollection;
2022-03-14 19:13:10 +01:00
2024-04-07 22:17:30 +02:00
/**
* @var RouteCollection $routes
2022-03-14 19:13:10 +01:00
*/
$routes->get('/', 'Home::index');
2024-04-07 22:17:30 +02:00
$routes->get('user/(:any)', 'Users::user/$1');
$routes->get('car/(:any)', 'Cars::index/$1');
$routes->get('track/(:any)', 'Tracks::index/$1');
$routes->get('race/(:num)', 'Races::index/$1');
$routes->get('users', 'Users::index');