mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-09 21:57:47 +02:00
Refresh user preferences from back-end when entering the Options view
This commit is contained in:
9
resources/js/services/userService.js
vendored
9
resources/js/services/userService.js
vendored
@ -4,6 +4,15 @@ const apiClient = httpClientFactory('api')
|
||||
const webClient = httpClientFactory('web')
|
||||
|
||||
export default {
|
||||
/**
|
||||
* Get current signed-in user preferences
|
||||
*
|
||||
* @returns promise
|
||||
*/
|
||||
getPreferences(config = {}) {
|
||||
return apiClient.get('/user/preferences', { ...config })
|
||||
},
|
||||
|
||||
/**
|
||||
* Update a user preference
|
||||
*
|
||||
|
Reference in New Issue
Block a user