Modify frontend api call for plants to be filtered
This commit is contained in:
parent
12ebe31cf5
commit
10ae4f46ce
2 changed files with 4 additions and 3 deletions
|
@ -2,8 +2,8 @@ import Repository from "./Repository";
|
|||
|
||||
const PlantRepsostory = {
|
||||
|
||||
getPlants() {
|
||||
return Repository.get(`/plants/`);
|
||||
getFilteredPlants(filters) {
|
||||
return Repository.get(`/plants/`, { params: filters });
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue