request delete

This commit is contained in:
CHIEFSOFT\ameye
2023-08-17 17:00:13 -04:00
parent ed824316a7
commit e3a0d15576
3 changed files with 7 additions and 1 deletions
+2
View File
@@ -178,6 +178,8 @@ $routes->post('/en/wrench/api/v1/askresources', 'WrenchResources::aigate');
$routes->post('/en/wrench/api/v1/setaccsettings', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/getaccsettings', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/reqdel', 'WrenchApi::apigate'); // request delete account
$routes->get('/en/wrench/api/v1/blogdata/', 'WrenchBlog::website');
$routes->get('/en/wrench/api/v1/blogdata/(:any)', 'WrenchBlog::blogLimitedData/$1');
@@ -200,6 +200,7 @@ abstract class BaseController extends Controller
'getaccsettings' => ['POST'],
'dashrecent' => ['POST'],
'myfiles' => ['POST'],
'reqdel'=> ['POST'],
];
return $endpoints;
}
+4 -1
View File
@@ -383,6 +383,9 @@ class WrenchApi extends BaseController
case 'sendreferral': $in["action"] =WRENCHBOARD_ACCOUNT_SENDREFER; break;
case 'refferhx': $in["action"] =WRENCHBOARD_ACCOUNT_REFFERHX; break;
case 'countrybanks': $in["action"] =WRENCHBOARD_ACCOUNT_COUNTRY_BANKS; break;
case 'reqdel':
// some actions
break;
}
$in["pid"] = 100;
@@ -391,7 +394,7 @@ class WrenchApi extends BaseController
public function apigate(){
log_message('critical', "0001");
header('Access-Control-Allow-Origin: *');
log_message('critical', "0002");
log_message('critical', "MainApi Path GATE 001");
$call_backend = true;
/*
//header("Access-Control-Allow-Origin: http://localhost:9057 ");