From f94b9d9d68725c90f32e244dcb642ba7f275cd7c Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Thu, 29 Feb 2024 11:26:38 -0500 Subject: [PATCH] blog data --- www-api/app/Controllers/WrenchResources.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/www-api/app/Controllers/WrenchResources.php b/www-api/app/Controllers/WrenchResources.php index 9dee7267..6f1575bc 100644 --- a/www-api/app/Controllers/WrenchResources.php +++ b/www-api/app/Controllers/WrenchResources.php @@ -61,10 +61,13 @@ class WrenchResources extends BaseController $res1['marketdata'] = $this->MarketData(); $res1['productdata'] = $this->ProductData(); $res1['collectiondata'] = $this->CollectionData(); + $res1['blogdata'] = $this->getBlogData(); return $this->response->setJson($res1); } - + private function getBlogData(){ + return ( new \App\Models\BlogDataModel() )->blogData(100); + } //************************ private function AskCategoryData(): array {