wip(org): Work on measurments sets
This commit is contained in:
parent
e3a92db154
commit
7991710c52
8 changed files with 298 additions and 26 deletions
|
@ -174,5 +174,15 @@ export function useBackend(token = false) {
|
|||
return response && response.status === 204 ? true : false
|
||||
}
|
||||
|
||||
/*
|
||||
* Get measurements sets
|
||||
*/
|
||||
backend.getSets = async () => responseHandler(await api.get(`/sets/jwt`, auth))
|
||||
|
||||
/*
|
||||
* Create measurements set
|
||||
*/
|
||||
backend.createSet = async (data) => responseHandler(await api.post(`/sets/jwt`, data, auth), 201)
|
||||
|
||||
return backend
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue