traefik/webui/src/_services/EntrypointsService.js
2019-09-10 14:40:05 +02:00

24 lines
492 B
JavaScript

import { APP } from '../_helpers/APP'
const apiBase = '/entrypoints'
function getAll () {
return APP.api.get(`${apiBase}`)
.then(body => {
console.log('Success -> EntrypointsService -> getAll', body.data)
return body.data
})
}
function getByName (name) {
return APP.api.get(`${apiBase}/${name}`)
.then(body => {
console.log('Success -> EntrypointsService -> getByName', body.data)
return body.data
})
}
export default {
getAll,
getByName
}