From da5beeaa52dcb69378682ed3cd432534df771560 Mon Sep 17 00:00:00 2001 From: Olusesan Ameye Date: Mon, 11 Oct 2021 18:44:12 -0400 Subject: [PATCH] fix --- www/svs/user/userve.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/www/svs/user/userve.php b/www/svs/user/userve.php index 095fd3f5..83a5dc14 100644 --- a/www/svs/user/userve.php +++ b/www/svs/user/userve.php @@ -5,6 +5,7 @@ include 'constants.php'; include 'formarter.php'; $endpoints = array( + 'apigate' => array('POST'), 'createuser' => array('POST'), 'createmobileuser' => array('POST'), 'completemobileuser' => array('POST'), @@ -64,7 +65,7 @@ if (substr($endpoint, 0, 19) == 'gettransportrequest' || substr($endpoint, 0, 13 if (!isset($endpoints[$endpoint])) { header('HTTP/1.1 400 Bad Request'); header('Status: 400 Bad Request'); - echo "{\"status\":\"Invalid endpoint url\"}"; + echo "{\"status\":\"Invalid endpoint url WRB\"}"; exit(); } @@ -88,6 +89,9 @@ if ($_SERVER["REQUEST_METHOD"] == "GET") { } $in["loc"] = $_SERVER["REMOTE_ADDR"]; switch ($endpoint) { + case 'generics': + $in["action"] = WRENCHBOARD_ACCOUNT_LOGIN; + break; case 'startjoblist': $in["action"] = WRENCHBOARD_START_JOBLIST; break;