Added disable account tester
This commit is contained in:
@@ -43,7 +43,8 @@ $endpoints = array(
|
|||||||
'couponpending' => array('POST'),
|
'couponpending' => array('POST'),
|
||||||
'couponredeem' => array('POST'),
|
'couponredeem' => array('POST'),
|
||||||
'sendinterestmessage' => 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
|
$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"];
|
$in["loc"] = $_SERVER["REMOTE_ADDR"];
|
||||||
switch ($endpoint) {
|
switch ($endpoint) {
|
||||||
|
case 'disableaccount':
|
||||||
|
$local_out = [
|
||||||
|
'result'=>'100',
|
||||||
|
'status'=> '3',
|
||||||
|
'msg'=> 'This is from backend'
|
||||||
|
];
|
||||||
|
// $call_backend = false;
|
||||||
|
break;
|
||||||
case 'replyinterestmessage':
|
case 'replyinterestmessage':
|
||||||
$in["action"] = WRENCHBOARD_JOB_REPLY_QUESTION;
|
$in["action"] = WRENCHBOARD_JOB_REPLY_QUESTION;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user