add new test routes

This commit is contained in:
2026-07-17 16:05:52 +02:00
parent 956aff9fe3
commit 2243aa24fd
3 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -90,7 +90,9 @@ if (strpos($request->path(), '/api/') === 0) {
$router->get('/users/index', 'UsersController@index');
$router->post('/users/create', 'UsersController@create');
$router->get('/example/test', 'ExampleController@test');
$router->get('/contratti/cerca', 'ContrattiController@cercaContratti');
$router->get('/contratti/cerca', 'ContrattiController@search');
$router->get('/dipendenti/cerca', 'DipendentiController@search');
$router->get('/api/dipendenti/cerca', 'DipendentiController@search');
// Rate limiting by IP address
$key = $_SERVER['REMOTE_ADDR'] ?? 'unknown';