From 4de3967acf8494c1b0a9baedc132f830b10d0c78 Mon Sep 17 00:00:00 2001 From: merdan Date: Wed, 12 May 2021 14:44:19 +0500 Subject: [PATCH] api surat views --- .../apigenerator/controllers/api/postsController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/ahmadfatoni/apigenerator/controllers/api/postsController.php b/plugins/ahmadfatoni/apigenerator/controllers/api/postsController.php index f80ac552a..a45acdb9a 100644 --- a/plugins/ahmadfatoni/apigenerator/controllers/api/postsController.php +++ b/plugins/ahmadfatoni/apigenerator/controllers/api/postsController.php @@ -31,14 +31,14 @@ class postsController extends Controller 'category' => input('category'), 'date' => input('date'), 'published' => true, - 'select' => ['id','title','published_at','content_html',DB::raw("IF(featured_image<>'',concat('$path',featured_image),featured_image) as main_image")] + 'select' => ['id','title','published_at',DB::raw("IF(featured_image<>'',concat('$path',featured_image),featured_image) as main_image")] ]); return $this->helpers->apiArrayResponseBuilder(200, 'success', $data); } public function show($locale,$id){ - $post = $this->Post::find($id); + $post = $this->Post::find($id,['id','content_html']); if(!is_null($post)) { $obj = Db::table('vdomah_blogviews_views')