mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-02 21:26:42 +01:00
26 lines
573 B
JavaScript
Vendored
26 lines
573 B
JavaScript
Vendored
import { httpClientFactory } from '@/services/httpClientFactory'
|
|
|
|
const apiClient = httpClientFactory('api')
|
|
|
|
export default {
|
|
/**
|
|
*
|
|
* @returns
|
|
*/
|
|
getAll() {
|
|
return apiClient.get('groups')
|
|
},
|
|
|
|
get(id, config = {}) {
|
|
return apiClient.get('/groups/' + id, { ...config })
|
|
},
|
|
|
|
assign(accountsIds, groupId, config = {}) {
|
|
return apiClient.post('/groups/' + groupId + '/assign', {ids: accountsIds})
|
|
},
|
|
|
|
delete(id, config = {}) {
|
|
return apiClient.delete('/groups/' + id, { ...config })
|
|
},
|
|
|
|
} |