blog data resources

This commit is contained in:
CHIEFSOFT\ameye
2023-07-01 09:59:08 -04:00
parent a1829299f8
commit d22d5f5721
2 changed files with 54 additions and 0 deletions
@@ -35,9 +35,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);
}
public function index()
{
@@ -48,6 +52,11 @@ class WrenchResources extends BaseController
$arrayVar = [
"data" => [
[
"id" => "1",
"name" => "blog",
"content" => "Blog",
],
[
"id" => "1",
"name" => "onsale",