This commit is contained in:
merdan 2021-05-11 14:42:47 +05:00
parent 89f56a3091
commit a3eb767e84
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class postsController extends Controller
if ($data){
return $this->helpers->apiArrayResponseBuilder(200, 'success', [$data]);
} else {
$this->helpers->apiArrayResponseBuilder(404, 'not found', ['error' => 'Resource id=' . $id . ' could not be found']);
return $this->helpers->apiArrayResponseBuilder(404, 'not found', ['error' => 'Resource id=' . $id . ' could not be found']);
}
}