mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-30 04:03:18 +01:00
21 lines
418 B
JavaScript
Vendored
21 lines
418 B
JavaScript
Vendored
import { httpClientFactory } from '@/services/httpClientFactory'
|
|
|
|
const webClient = httpClientFactory('web')
|
|
const apiClient = httpClientFactory('api')
|
|
|
|
export default {
|
|
/**
|
|
*
|
|
*/
|
|
logout(config = {}) {
|
|
return webClient.get('/user/logout', { ...config })
|
|
},
|
|
|
|
/**
|
|
*
|
|
*/
|
|
async getCurrentUser(config = {}) {
|
|
return apiClient.get('/user', { ...config })
|
|
},
|
|
|
|
} |