From 4089b3dd6aa5a9690ecd97499e43f71b52237e06 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Mon, 9 Sep 2024 15:59:20 -0400 Subject: [PATCH] new end points --- www-api/app/Config/Routes.php | 3 +++ www-api/app/Controllers/AirFlow.php | 27 +++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/www-api/app/Config/Routes.php b/www-api/app/Config/Routes.php index ccaa856d..9ceda64b 100644 --- a/www-api/app/Config/Routes.php +++ b/www-api/app/Config/Routes.php @@ -46,6 +46,9 @@ $routes->get('/en/flow/api/v1/signup-report', 'AirFlow::flowSignupReport'); $routes->get('/en/flow/api/v1/refresh-blog', 'AirFlow::flowRefreshBlog'); $routes->get('/en/flow/api/v1/notifications', 'AirFlow::flowSendNotifications'); $routes->get('/en/flow/api/v1/interestcount', 'AirFlow::flowInterestcount'); +$routes->get('/en/flow/api/v1/processtransfer', 'AirFlow::flowProcessTransfer'); +$routes->get('/en/flow/api/v1/scheduletransfer', 'AirFlow::flowScheduleTransfer'); +$routes->get('/en/flow/api/v1/testnotifications', 'AirFlow::flowTestNotifications'); include "RoutesV1.php"; diff --git a/www-api/app/Controllers/AirFlow.php b/www-api/app/Controllers/AirFlow.php index f43db31a..b1ca3193 100644 --- a/www-api/app/Controllers/AirFlow.php +++ b/www-api/app/Controllers/AirFlow.php @@ -70,6 +70,33 @@ class AirFlow extends BaseController return []; //json_encode( $final_out ); } + public function flowProcessTransfer(){ + + $raw_json = file_get_contents('php://input'); + $in = json_decode($raw_json, true); + $out =[]; + log_message('critical', "AirFlow::flowProcessTransfer ********* ALL ".serialize($in) ); + return []; //json_encode( $final_out ); + } + + public function flowScheduleTransfer(){ + + $raw_json = file_get_contents('php://input'); + $in = json_decode($raw_json, true); + $out =[]; + log_message('critical', "AirFlow::flowScheduleTransfer ********* ALL ".serialize($in) ); + return []; //json_encode( $final_out ); + } + + public function flowTestNotifications(){ + + $raw_json = file_get_contents('php://input'); + $in = json_decode($raw_json, true); + $out =[]; + log_message('critical', "AirFlow::flowTestNotifications ********* ALL ".serialize($in) ); + return []; //json_encode( $final_out ); + } + public function flowSendNotifications(){ $raw_json = file_get_contents('php://input');