mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-09 13:55:01 +02:00
Enable the Vue 3 front-end
This commit is contained in:
22
resources/js/services/systemService.js
vendored
Normal file
22
resources/js/services/systemService.js
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
import { httpClientFactory } from '@/services/httpClientFactory'
|
||||
|
||||
const webClient = httpClientFactory('web')
|
||||
|
||||
export default {
|
||||
/**
|
||||
*
|
||||
* @returns Promise
|
||||
*/
|
||||
getSystemInfos(config = {}) {
|
||||
return webClient.get('infos', { ...config })
|
||||
},
|
||||
|
||||
/**
|
||||
*
|
||||
* @returns Promise
|
||||
*/
|
||||
getLastRelease(config = {}) {
|
||||
return webClient.get('latestRelease', { ...config })
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user