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