diff --git a/www-api/app/Config/Constants.php b/www-api/app/Config/Constants.php index 76573972..88d6273e 100644 --- a/www-api/app/Config/Constants.php +++ b/www-api/app/Config/Constants.php @@ -258,6 +258,9 @@ define('WRENCHBOARD_ACCOUNT_REFFERHX', 11064); define('WRENCHBOARD_ACCOUNT_PREFERENCES', 11065); +define('WRENCHBOARD_ACCOUNT_MYPAGE', 11070); +define('WRENCHBOARD_ACCOUNT_PAGEINTRO', 11071); + define('WRENCHBOARD_ACCOUNT_PRICE_COMBO', 11171); define('WRENCHBOARD_ACCOUNT_JOBPOST_DURATION', 11173); define('WRENCHBOARD_ACCOUNT_USER_RECIPEINT', 11175); diff --git a/www-api/app/Config/Routes.php b/www-api/app/Config/Routes.php index 40e8f811..806efad1 100644 --- a/www-api/app/Config/Routes.php +++ b/www-api/app/Config/Routes.php @@ -108,6 +108,8 @@ $routes->post('/en/wrench/api/v1/groupmemberdel', 'WrenchApi::apigate' $routes->post('/en/wrench/api/v1/activetaskslist', 'WrenchApi::apigate'); +$routes->post('/en/wrench/api/v1/mypageload', 'WrenchApi::apigate'); +$routes->post('/en/wrench/api/v1/mypageintro', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/familylist', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/familywallet', 'WrenchApi::apigate'); diff --git a/www-api/app/Controllers/BaseController.php b/www-api/app/Controllers/BaseController.php index aab05b7e..b986bfd3 100644 --- a/www-api/app/Controllers/BaseController.php +++ b/www-api/app/Controllers/BaseController.php @@ -236,6 +236,8 @@ abstract class BaseController extends Controller 'confirmcredit' => ['POST'], 'setaccsettings' => ['POST'], 'getaccsettings' => ['POST'], + 'mypageload' => ['POST'], + 'mypageintro' => ['POST'], 'dashrecent' => ['POST'], 'myfiles' => ['POST'], 'reqdel' => ['POST'], diff --git a/www-api/app/Controllers/WrenchApi.php b/www-api/app/Controllers/WrenchApi.php index 7d943472..a543ec7f 100644 --- a/www-api/app/Controllers/WrenchApi.php +++ b/www-api/app/Controllers/WrenchApi.php @@ -45,6 +45,12 @@ class WrenchApi extends BaseController } private function prepareEndPointData($endpoint, $in, &$call_backend=true,&$local_out=[]){ switch ($endpoint) { + case 'mypageload': + $in["action"] = WRENCHBOARD_ACCOUNT_MYPAGE; + break; + case 'mypageintro': + $in["action"] = WRENCHBOARD_ACCOUNT_PAGEINTRO; + break; case 'preferences': $in["action"] = WRENCHBOARD_ACCOUNT_PREFERENCES; //preferences // define('WRENCHBOARD_ACCOUNT_PREFERENCES', 11065);