From 8b9386c0c8ba9852591cc335d04be74809244cc7 Mon Sep 17 00:00:00 2001 From: merdan Date: Tue, 11 May 2021 17:59:49 +0500 Subject: [PATCH] api --- .../apigenerator/controllers/api/postsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ahmadfatoni/apigenerator/controllers/api/postsController.php b/plugins/ahmadfatoni/apigenerator/controllers/api/postsController.php index a504792ac..d4826ce2d 100644 --- a/plugins/ahmadfatoni/apigenerator/controllers/api/postsController.php +++ b/plugins/ahmadfatoni/apigenerator/controllers/api/postsController.php @@ -31,7 +31,7 @@ class postsController extends Controller 'category' => input('category'), 'date' => input('date'), 'published' => true, - 'select' => ['id','title','published_at',DB::raw("IF(featured_image<>'',concat('$path',featured_image),featured_image) as main_image")] + 'select' => ['id','title','published_at','content_html',DB::raw("IF(featured_image<>'',concat('$path',featured_image),featured_image) as main_image")] ]); return $this->helpers->apiArrayResponseBuilder(200, 'success', $data); }