traefik/webui/src/_services/CoreService.js
2019-08-26 18:15:41 +02:00

25 lines
489 B
JavaScript

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
}