From 09c14cf2cad2bdf768797f0b7d6c36669e33f235 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sun, 7 Jul 2024 14:03:25 -0400 Subject: [PATCH] Create account controller --- www-api/app/Config/Routes.php | 2 +- www-api/app/Controllers/WrenchAccount.php | 33 +++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 www-api/app/Controllers/WrenchAccount.php diff --git a/www-api/app/Config/Routes.php b/www-api/app/Config/Routes.php index 13ad9b6c..be65a228 100644 --- a/www-api/app/Config/Routes.php +++ b/www-api/app/Config/Routes.php @@ -51,7 +51,7 @@ $routes->post('/en/wrench/api/v1/helpdata', 'WrenchFaq::helpgate'); $routes->post('/en/wrench/api/v1/apigate', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/generics', 'WrenchApi::apigate'); -$routes->post('/en/wrench/api/v1/createuser', 'WrenchApi::apigate'); +$routes->post('/en/wrench/api/v1/createuser', 'WrenchAccount::CreateNewAccount'); // 'WrenchApi::apigate' $routes->post('/en/wrench/api/v1/verifysignuplink', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/completesignuplink', 'WrenchApi::apigate'); diff --git a/www-api/app/Controllers/WrenchAccount.php b/www-api/app/Controllers/WrenchAccount.php new file mode 100644 index 00000000..ee7fa77c --- /dev/null +++ b/www-api/app/Controllers/WrenchAccount.php @@ -0,0 +1,33 @@ +wrenchboard->wrenchboard_api($in, $out); + $out['internal_return'] = $ret; + + return $this->summaryReturnData($in,$out); //json_encode( $final_out ); + + } +} \ No newline at end of file