feat(shared): Add getSet to useBackend hook
This commit is contained in:
parent
108033bc7d
commit
b81c944705
1 changed files with 5 additions and 0 deletions
|
@ -180,6 +180,11 @@ export function useBackend(token = false) {
|
|||
*/
|
||||
backend.getSets = async () => responseHandler(await api.get(`/sets/jwt`, auth))
|
||||
|
||||
/*
|
||||
* Get measurements set
|
||||
*/
|
||||
backend.getSet = async (id) => responseHandler(await api.get(`/sets/${id}/jwt`, auth))
|
||||
|
||||
/*
|
||||
* Create measurements set
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue