fix
This commit is contained in:
@@ -38,6 +38,7 @@ $endpoints = array(
|
|||||||
'blogitem' => array('POST'),
|
'blogitem' => array('POST'),
|
||||||
'couponhx' => array('POST'),
|
'couponhx' => array('POST'),
|
||||||
'couponpending' => array('POST'),
|
'couponpending' => array('POST'),
|
||||||
|
'couponredeem' => 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
|
||||||
@@ -100,6 +101,9 @@ if ($_SERVER["REQUEST_METHOD"] == "GET") {
|
|||||||
}
|
}
|
||||||
$in["loc"] = $_SERVER["REMOTE_ADDR"];
|
$in["loc"] = $_SERVER["REMOTE_ADDR"];
|
||||||
switch ($endpoint) {
|
switch ($endpoint) {
|
||||||
|
case 'couponredeem':
|
||||||
|
$in["action"] = WRENCHBOARD_COUPON_REDEEM;
|
||||||
|
break;
|
||||||
case 'couponpending':
|
case 'couponpending':
|
||||||
$in["action"] = WRENCHBOARD_COUPON_PENDLIST;
|
$in["action"] = WRENCHBOARD_COUPON_PENDLIST;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user