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 = {}) {
|
|
|
|
return webClient.get('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 = {}) {
|
|
|
|
return webClient.get('latestRelease', { ...config })
|
2023-10-04 09:30:05 +02:00
|
|
|
}
|
2023-09-21 16:52:13 +02:00
|
|
|
|
|
|
|
}
|