mirror of
https://github.com/kevin-DL/scraps.git
synced 2026-01-11 18:04:31 +00:00
Change ranking mode on search
This commit is contained in:
@@ -21,7 +21,7 @@ class SearchController extends Controller
|
|||||||
$connector = new SpoonacularConnector();
|
$connector = new SpoonacularConnector();
|
||||||
$request = new FindRecipesByIngredients(
|
$request = new FindRecipesByIngredients(
|
||||||
ingredients: array_map("trim", explode(",", $data['ingredients'])),
|
ingredients: array_map("trim", explode(",", $data['ingredients'])),
|
||||||
ranking: 2
|
ranking: 1
|
||||||
);
|
);
|
||||||
|
|
||||||
$response = $connector->send($request);
|
$response = $connector->send($request);
|
||||||
|
|||||||
Reference in New Issue
Block a user