2023-09-27 10:24:03 +02:00
|
|
|
import { httpClientFactory } from '@/services/httpClientFactory'
|
2023-09-21 16:52:13 +02:00
|
|
|
|
2023-09-27 10:24:03 +02:00
|
|
|
const webClient = httpClientFactory('web')
|
2023-09-21 16:52:13 +02:00
|
|
|
|
|
|
|
export default {
|
|
|
|
/**
|
|
|
|
*
|
2023-10-04 09:30:05 +02:00
|
|
|
* @returns Promise
|
2023-09-21 16:52:13 +02:00
|
|
|
*/
|
2023-11-23 14:30:42 +01:00
|
|
|
getSystemInfos(config = {}) {
|
2024-03-07 14:13:02 +01:00
|
|
|
return webClient.get('system/infos', { ...config })
|
2023-09-21 16:52:13 +02:00
|
|
|
},
|
2023-10-04 09:30:05 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @returns Promise
|
|
|
|
*/
|
2023-11-23 14:30:42 +01:00
|
|
|
getLastRelease(config = {}) {
|
2024-03-07 14:13:02 +01:00
|
|
|
return webClient.get('system/latestRelease', { ...config })
|
2024-02-26 15:06:26 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @returns Promise
|
|
|
|
*/
|
|
|
|
sendTestEmail(config = {}) {
|
2024-03-07 14:13:02 +01:00
|
|
|
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 })
|
|
|
|
},
|
2023-09-21 16:52:13 +02:00
|
|
|
|
|
|
|
}
|