Add basic plant repository and demo page with plant list
This commit is contained in:
parent
9b17536102
commit
80d5b181d9
3 changed files with 59 additions and 5 deletions
11
frontend/src/repository/PlantRepository.js
Normal file
11
frontend/src/repository/PlantRepository.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
import Repository from "./Repository";
|
||||
|
||||
const PlantRepsostory = {
|
||||
|
||||
getPlants() {
|
||||
return Repository.get(`/plants/`);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export default PlantRepsostory;
|
Loading…
Add table
Add a link
Reference in a new issue