mirror of
https://github.com/lucaspalomodevelop/opnsense-core.git
synced 2026-03-13 08:09:42 +00:00
mvc: hook default action in api.php in case someone bolds an api call to the controller index.
This commit is contained in:
parent
17f3f43e97
commit
3934f74a5a
@ -33,7 +33,10 @@ try {
|
||||
});
|
||||
|
||||
$router = new OPNsense\Mvc\Router('/api/', 'Api');
|
||||
$response = $router->routeRequest($_SERVER['REQUEST_URI']);
|
||||
$response = $router->routeRequest($_SERVER['REQUEST_URI'], [
|
||||
'action' => 'indexAction',
|
||||
]);
|
||||
|
||||
if (!$response->isSent()) {
|
||||
$response->send();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user