Modify frontend api call for plants to be filtered

This commit is contained in:
Dana Lambert 2021-10-19 16:07:13 +13:00
parent 12ebe31cf5
commit 10ae4f46ce
2 changed files with 4 additions and 3 deletions

View file

@ -2,8 +2,8 @@ import Repository from "./Repository";
const PlantRepsostory = {
getPlants() {
return Repository.get(`/plants/`);
getFilteredPlants(filters) {
return Repository.get(`/plants/`, { params: filters });
}
}