Create csv download endpoint

This commit is contained in:
Dana Lambert 2021-11-08 17:00:04 +13:00
parent edd2054763
commit 35aa9cbe70
4 changed files with 153 additions and 5 deletions

View file

@ -4,6 +4,10 @@ const PlantRepository = {
getFilteredPlants(filters) {
return Repository.get(`/plants/`, { params: filters });
},
getPlantsCSV(filters) {
return Repository.get('/downloadcsv/', { params: filters })
}
}