add new lights, add login and role to it, add services page
This commit is contained in:
@@ -2,19 +2,29 @@ import { boot } from 'quasar/wrappers';
|
||||
import axios from 'axios';
|
||||
|
||||
const host = window.location.hostname;
|
||||
const port = 8100;
|
||||
const portDbm = 8100;
|
||||
const portApp = 9500;
|
||||
|
||||
const api = axios.create({
|
||||
baseURL: `http://${host}:${port}`,
|
||||
const dbmApi = axios.create({
|
||||
baseURL: `http://${host}:${portDbm}`,
|
||||
timeout: 30000,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
});
|
||||
|
||||
const appApi = axios.create({
|
||||
baseURL: `http://${host}:${portApp}/api`,
|
||||
timeout: 10000,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
});
|
||||
|
||||
export default boot(({ app }) => {
|
||||
app.config.globalProperties.$axios = axios;
|
||||
app.config.globalProperties.$api = api;
|
||||
app.config.globalProperties.$dbmApi = dbmApi;
|
||||
app.config.globalProperties.$appApi = appApi;
|
||||
});
|
||||
|
||||
export { axios, api };
|
||||
export { axios, dbmApi, appApi };
|
||||
|
Reference in New Issue
Block a user