This commit is contained in:
2022-06-20 21:22:57 -04:00
parent 939fad23c0
commit 01cf6d6fbe
+4
View File
@@ -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;