From ab081dea0d555de50d907c51ee49b353d0abdea9 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Mon, 3 Jul 2023 07:18:19 -0400 Subject: [PATCH] suggest tasks --- www-api/app/Config/Routes.php | 2 ++ www-api/app/Controllers/WrenchApi.php | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/www-api/app/Config/Routes.php b/www-api/app/Config/Routes.php index 5d8cd37f..28fa1e14 100644 --- a/www-api/app/Config/Routes.php +++ b/www-api/app/Config/Routes.php @@ -99,6 +99,8 @@ $routes->post('/en/wrench/api/v1/familyadd', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/familyupdate', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/familymanage', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/familysampletasks', 'WrenchApi::apigate'); +$routes->post('/en/wrench/api/v1/familysuggesttasks', 'WrenchApi::apigate'); + $routes->post('/en/wrench/api/v1/recipients', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/addrecipient', 'WrenchApi::apigate'); diff --git a/www-api/app/Controllers/WrenchApi.php b/www-api/app/Controllers/WrenchApi.php index f400a4c8..edad4216 100644 --- a/www-api/app/Controllers/WrenchApi.php +++ b/www-api/app/Controllers/WrenchApi.php @@ -117,6 +117,7 @@ class WrenchApi extends BaseController 'payremcard' => ['POST'], 'mynotifications' => ['POST'], 'familysampletasks' => ['POST'], + 'familysuggesttasks' => ['POST'], ]; return $endpoints; } @@ -180,6 +181,9 @@ class WrenchApi extends BaseController break; case 'familysampletasks': $in["action"] = WRENCHBOARD_FAMILY_SAMPLETASKS; + break; + case 'familysuggesttasks': + break; case 'familylist': $in["action"] = WRENCHBOARD_FAMILY_LIST;