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

14 lines
283 B
JavaScript
Raw Normal View History

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