fixed .htaccess
This commit is contained in:
parent
93e12b9949
commit
17535d825d
|
@ -2,7 +2,7 @@
|
||||||
"name": "24unix/bindapi",
|
"name": "24unix/bindapi",
|
||||||
"description": "manage Bind9 DNS server via REST API",
|
"description": "manage Bind9 DNS server via REST API",
|
||||||
"version": "2023.0.1",
|
"version": "2023.0.1",
|
||||||
"build_number": "339",
|
"build_number": "340",
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "Micha Espey",
|
"name": "Micha Espey",
|
||||||
|
|
|
@ -28,7 +28,7 @@ header(header: "Access-Control-Allow-Headers: Content-Type, Access-Control-Allow
|
||||||
$requestMethod = $_SERVER["REQUEST_METHOD"];
|
$requestMethod = $_SERVER["REQUEST_METHOD"];
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$app = new BindAPI();
|
$app = new BindAPI(quiet: false);
|
||||||
$app->handleRequest(requestMethod: $requestMethod, uri: $uri);
|
$app->handleRequest(requestMethod: $requestMethod, uri: $uri);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
echo json_encode(value: [
|
echo json_encode(value: [
|
||||||
|
|
Loading…
Reference in New Issue