mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-08 21:44:32 +02:00
Enable the Vue 3 front-end
This commit is contained in:
26
resources/js/services/groupService.js
vendored
Normal file
26
resources/js/services/groupService.js
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
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 }, { ...config })
|
||||
},
|
||||
|
||||
delete(id, config = {}) {
|
||||
return apiClient.delete('/groups/' + id, { ...config })
|
||||
},
|
||||
|
||||
}
|
Reference in New Issue
Block a user