From 8cbff65d12d94e41123855e479f7e17ede3dbac9 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sun, 7 Jan 2024 18:41:44 -0500 Subject: [PATCH] group offer --- www-api/app/Config/Routes.php | 8 +++++--- www-api/app/Controllers/WrenchCrons.php | 5 +++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/www-api/app/Config/Routes.php b/www-api/app/Config/Routes.php index 806efad1..845ff64c 100644 --- a/www-api/app/Config/Routes.php +++ b/www-api/app/Config/Routes.php @@ -230,10 +230,12 @@ $routes->post('/en/wrench/hooks/v1/stripes', 'WrenchHooks::stripes'); // cron jobs ------------ ===== ------------ $routes->post('/en/wrench/api/v1/cron', 'WrenchCrons::apigate'); -$routes->get('/en/wrench/api/v1/cron', 'WrenchCrons::apigate'); -$routes->get('/en/wrench/api/v1/cron_jobalerts', 'WrenchCrons::jobalerts'); -$routes->get('/en/wrench/api/v1/notifications', 'WrenchCrons::cron_notifications'); +$routes->get('/en/wrench/api/v1/cron', 'WrenchCrons::apigate'); +$routes->get('/en/wrench/api/v1/cron_jobalerts', 'WrenchCrons::jobalerts'); +$routes->get('/en/wrench/api/v1/notifications', 'WrenchCrons::cron_notifications'); $routes->get('/en/wrench/api/v1/offersreminders', 'WrenchCrons::offersreminders'); +$routes->get('/en/wrench/api/v1/groupoffer', 'WrenchCrons::groupoffer'); + $routes->get('/en/wrench/api/v1/bko', 'Bko::apigate'); diff --git a/www-api/app/Controllers/WrenchCrons.php b/www-api/app/Controllers/WrenchCrons.php index 122b77ca..3f067b3b 100644 --- a/www-api/app/Controllers/WrenchCrons.php +++ b/www-api/app/Controllers/WrenchCrons.php @@ -33,6 +33,11 @@ class WrenchCrons extends BaseController //$routes->get('/en/wrench/api/v1/cron_jobalerts', 'WrenchCrons::jobalerts'); //$routes->get('/en/wrench/api/v1/cron_notifications', 'WrenchCrons::notifications'); + public function groupoffer(){ + log_message('critical', "WrenchCrons ===> groupoffer ******** 0001"); + + return []; + } public function cron_notifications() { log_message('critical', "WrenchCrons ===> cron_notifications ******** 0001");