mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-27 02:36:06 +01:00
14 lines
283 B
JavaScript
14 lines
283 B
JavaScript
|
import { httpClientFactory } from '@/services/httpClientFactory'
|
||
|
|
||
|
const apiClient = httpClientFactory('api')
|
||
|
|
||
|
export default {
|
||
|
/**
|
||
|
*
|
||
|
* @returns
|
||
|
*/
|
||
|
update(name, value) {
|
||
|
return apiClient.put('/user/preferences/' + name, { value: value })
|
||
|
},
|
||
|
|
||
|
}
|