diff --git a/www-api/app/Controllers/WrenchNotifications.php b/www-api/app/Controllers/WrenchNotifications.php index cd476515..45a4560d 100644 --- a/www-api/app/Controllers/WrenchNotifications.php +++ b/www-api/app/Controllers/WrenchNotifications.php @@ -78,7 +78,8 @@ class WrenchNotifications extends BaseController switch ($endpoints){ case 'mynotifications': - + $call_backend = false; + $local_out = $this->dummyData(); break; } @@ -102,5 +103,22 @@ class WrenchNotifications extends BaseController return $this->response->setJson($response); } + private function dummyData(){ + + $ic =['alert.svg','message.svg','phone.svg','sms.svg']; + + $total = rand(5,25); + for ($i = 0; $i < $total; $i++) { + $key = sprintf("%05d", $i); + $data["result_list"][] = array( + "icon" => $ic[rand(0,3)], + "title" => "This is faq title dummy text ".$key, + "date" => "10-10-2025 12:30PM", + ); + } + + return $data; + + } } \ No newline at end of file