From 71b4118b4c4617d7e6b2437bd17fe83bccb5580e Mon Sep 17 00:00:00 2001 From: Dana Lambert Date: Fri, 5 Nov 2021 11:18:53 +1300 Subject: [PATCH] Add SiteRepository for habitat/zone related requests --- frontend/src/repository/SiteRepository.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 frontend/src/repository/SiteRepository.js diff --git a/frontend/src/repository/SiteRepository.js b/frontend/src/repository/SiteRepository.js new file mode 100644 index 0000000..af07b84 --- /dev/null +++ b/frontend/src/repository/SiteRepository.js @@ -0,0 +1,11 @@ +import Repository from "./Repository"; + +const SiteRepository = { + + getHabitats() { + return Repository.get(`/habitats/`); + } + +} + +export default SiteRepository; \ No newline at end of file