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