adjust Request-class methods to be more flexible
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -42,5 +42,6 @@ require_once dirname(__DIR__) . '/lib/tables.inc.php';
|
||||
try {
|
||||
echo (new Ajax)->handle();
|
||||
} catch (Exception $e) {
|
||||
header("Content-Type: application/json");
|
||||
echo \Froxlor\Api\Response::jsonErrorResponse($e->getMessage(), 500);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user