Skip to content

Commit

Permalink
Added search via query param
Browse files Browse the repository at this point in the history
  • Loading branch information
dyazincahya authored Jun 26, 2024
1 parent 6cfe125 commit 98769b3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ApiKBBI.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ class ApiKBBI extends BaseController
{
public function index()
{
$search = $this->request->getGet('search');

if(!empty(isset($search)))
{
return $this->search($search);
}

return $this->response->setJSON([
'api' => [
"name" => "API KBBI 2024",
Expand Down

0 comments on commit 98769b3

Please sign in to comment.