2FAuth/resources/js_vue3/services/userPreferenceService.js

14 lines
283 B
JavaScript
Vendored

import { httpClientFactory } from '@/services/httpClientFactory'
const apiClient = httpClientFactory('api')
export default {
/**
*
* @returns
*/
update(name, value) {
return apiClient.put('/user/preferences/' + name, { value: value })
},
}