add mock api for contratti

This commit is contained in:
2026-07-16 14:43:39 +02:00
parent 04ed2a7120
commit ec26db0bfa
3 changed files with 32 additions and 2 deletions
+1
View File
@@ -47,6 +47,7 @@ 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');
// Rate limiting by IP address
$key = $_SERVER['REMOTE_ADDR'] ?? 'unknown';