budibase/packages/frontend-core/src/api/groups.js

19 lines
426 B
JavaScript
Raw Normal View History

2022-06-15 17:51:30 +02:00
export const buildGroupsEndpoints = API => ({
/**
* Creates or updates a user in the current tenant.
* @param user the new user to create
*/
saveGroup: async group => {
return await API.post({
url: "/api/global/groups",
body: group,
})
},
getGroups: async () => {
return await API.get({
url: "/api/global/groups",
})
}
})