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