diff --git a/app/Http/Controllers/SearxProxy.php b/app/Http/Controllers/SearxProxy.php index 3b9795fd1645b2efe1df42a2e7759d94172c3fd8..af5af3bc299580297f9f580fdcc68d2f9ffe727a 100644 --- a/app/Http/Controllers/SearxProxy.php +++ b/app/Http/Controllers/SearxProxy.php @@ -22,7 +22,7 @@ class SearxProxy extends Controller curl_close($ch); if(json_decode($response) !== null){ - return response()->json(['hostname' => $host, json_decode($response)]); + return response()->json(['hostname' => $host, 'results' => json_decode($response)]); }else { throw new \Exception('invalid response'); }