Add a new dashboard page.
This commit is contained in:
parent
89150e1164
commit
fd24b1898e
133 changed files with 17303 additions and 11112 deletions
24
webui/src/_services/CoreService.js
Normal file
24
webui/src/_services/CoreService.js
Normal file
|
@ -0,0 +1,24 @@
|
|||
import { APP } from '../_helpers/APP'
|
||||
|
||||
const apiBase = ''
|
||||
|
||||
function getOverview () {
|
||||
return APP.api.get(`${apiBase}/overview`)
|
||||
.then(body => {
|
||||
console.log('Success -> CoreService -> getOverview', body.data)
|
||||
return body.data
|
||||
})
|
||||
}
|
||||
|
||||
function getVersion () {
|
||||
return APP.api.get(`${apiBase}/version`)
|
||||
.then(body => {
|
||||
console.log('Success -> CoreService -> getVersion', body.data)
|
||||
return body.data
|
||||
})
|
||||
}
|
||||
|
||||
export default {
|
||||
getOverview,
|
||||
getVersion
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue