Add a new dashboard page.
This commit is contained in:
parent
89150e1164
commit
fd24b1898e
133 changed files with 17303 additions and 11112 deletions
12
webui/src/boot/api.js
Normal file
12
webui/src/boot/api.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
import axios from 'axios'
|
||||
|
||||
import { APP } from '../_helpers/APP'
|
||||
|
||||
// Set config defaults when creating the instance
|
||||
const API = axios.create({
|
||||
baseURL: APP.config.apiUrl
|
||||
})
|
||||
|
||||
export default async ({ app, Vue }) => {
|
||||
Vue.prototype.$api = app.api = APP.api = API
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue