fix api routing and config paths
This commit is contained in:
+3
-3
@@ -44,9 +44,9 @@ if (strpos($request->path(), '/api/') === 0) {
|
||||
}
|
||||
|
||||
// register routes (path without version prefix)
|
||||
$router->get('/users', 'UsersController@index');
|
||||
$router->post('/users', 'UsersController@create');
|
||||
$router->get('/example', 'ExampleController@test');
|
||||
$router->get('/users/index', 'UsersController@index');
|
||||
$router->post('/users/create', 'UsersController@create');
|
||||
$router->get('/example/test', 'ExampleController@test');
|
||||
|
||||
// Rate limiting by IP address
|
||||
$key = $_SERVER['REMOTE_ADDR'] ?? 'unknown';
|
||||
|
||||
Reference in New Issue
Block a user