Added disable account tester
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user