mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-11 09:40:43 +01:00
46 lines
894 B
JavaScript
Vendored
46 lines
894 B
JavaScript
Vendored
import { httpClientFactory } from '@/services/httpClientFactory'
|
|
|
|
const webClient = httpClientFactory('web')
|
|
|
|
export default {
|
|
/**
|
|
*
|
|
* @returns Promise
|
|
*/
|
|
getSystemInfos(config = {}) {
|
|
return webClient.get('system/infos', { ...config })
|
|
},
|
|
|
|
/**
|
|
*
|
|
* @returns Promise
|
|
*/
|
|
getLastRelease(config = {}) {
|
|
return webClient.get('system/latestRelease', { ...config })
|
|
},
|
|
|
|
/**
|
|
*
|
|
* @returns Promise
|
|
*/
|
|
sendTestEmail(config = {}) {
|
|
return webClient.post('system/test-email', { ...config })
|
|
},
|
|
|
|
/**
|
|
*
|
|
* @returns Promise
|
|
*/
|
|
clearCache(config = {}) {
|
|
return webClient.get('system/clear-cache', { ...config })
|
|
},
|
|
|
|
/**
|
|
*
|
|
* @returns Promise
|
|
*/
|
|
optimize(config = {}) {
|
|
return webClient.get('system/optimize', { ...config })
|
|
},
|
|
|
|
} |