From bf5fdb4257d20ac00fc9e25f2151f2d1489a131d Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Fri, 13 Jun 2025 23:09:12 -0400 Subject: [PATCH] removed checks --- www-api/app/Controllers/BackOffice.php | 32 +++++++++++++------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/www-api/app/Controllers/BackOffice.php b/www-api/app/Controllers/BackOffice.php index b19ad9f4..a5adbf8c 100644 --- a/www-api/app/Controllers/BackOffice.php +++ b/www-api/app/Controllers/BackOffice.php @@ -41,21 +41,21 @@ class BackOffice extends BaseController $id = strtok('/'); } - if (!isset($endpoints[$endpoint])) { - header('HTTP/1.1 400 Bad Request'); - header('Status: 400 Bad Request'); - echo "{\"status\":\"Invalid endpoint url WRB\"}"; - exit(); - } - - $methods = $endpoints[$endpoint]; - - if (array_search($_SERVER['REQUEST_METHOD'], $methods) === false) { - header('HTTP/1.1 405 Method Not Allowed'); - header('Status: 405 Method Not Allowed'); - echo "{\"status\":\"Invalid request method\"}"; - exit(); - } +// if (!isset($endpoints[$endpoint])) { +// header('HTTP/1.1 400 Bad Request'); +// header('Status: 400 Bad Request'); +// echo "{\"status\":\"Invalid endpoint url WRB\"}"; +// exit(); +// } +// +// $methods = $endpoints[$endpoint]; +// +// if (array_search($_SERVER['REQUEST_METHOD'], $methods) === false) { +// header('HTTP/1.1 405 Method Not Allowed'); +// header('Status: 405 Method Not Allowed'); +// echo "{\"status\":\"Invalid request method\"}"; +// exit(); +// } if ($_SERVER["REQUEST_METHOD"] == "POST") { $in = flatten(json_decode(file_get_contents('php://input'), true)); @@ -74,7 +74,7 @@ class BackOffice extends BaseController $in["pid"] = 100; - + $out = []; $ret = $this->wrenchboard->wrenchboard_api($in, $out); $out['internal_return'] = $ret;