mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-30 04:03:18 +01:00
29 lines
583 B
JavaScript
Vendored
29 lines
583 B
JavaScript
Vendored
import { httpClientFactory } from '@/services/httpClientFactory'
|
|
|
|
const apiClient = httpClientFactory('api')
|
|
|
|
export default {
|
|
/**
|
|
*
|
|
* @returns
|
|
*/
|
|
getAll(config = {}) {
|
|
return apiClient.get('/settings', { ...config })
|
|
},
|
|
|
|
/**
|
|
*
|
|
* @returns
|
|
*/
|
|
update(name, value, config = {}) {
|
|
return apiClient.put('/settings/' + name, { value: value }, { ...config })
|
|
},
|
|
|
|
/**
|
|
*
|
|
* @returns
|
|
*/
|
|
delete(name, config = {}) {
|
|
return apiClient.delete('/settings/' + name, { ...config })
|
|
},
|
|
} |