Added disable account tester

This commit is contained in:
Olu Amey
2022-12-31 10:27:24 -05:00
parent 3dd46ec357
commit 88821c96e3
+10 -1
View File
@@ -43,7 +43,8 @@ $endpoints = array(
'couponpending' => array('POST'),
'couponredeem' => array('POST'),
'sendinterestmessage' => array('POST'),
'replyinterestmessage' => array('POST')
'replyinterestmessage' => array('POST'),
'disableaccount' => array('POST')
);
$call_backend = true; // sometimes we need to overwite the call to the extenstion API
@@ -106,6 +107,14 @@ if ($_SERVER["REQUEST_METHOD"] == "GET") {
}
$in["loc"] = $_SERVER["REMOTE_ADDR"];
switch ($endpoint) {
case 'disableaccount':
$local_out = [
'result'=>'100',
'status'=> '3',
'msg'=> 'This is from backend'
];
// $call_backend = false;
break;
case 'replyinterestmessage':
$in["action"] = WRENCHBOARD_JOB_REPLY_QUESTION;
break;