added repo for API access, still strange error in Group.vue
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
// Repository.js
|
||||
|
||||
import Vue from 'vue';
|
||||
import Vue from "vue";
|
||||
import axios from "axios";
|
||||
import store from "@/store";
|
||||
|
||||
const baseDomain = "http://localhost:5443";
|
||||
const API_URL = `${baseDomain}/api/v1`;
|
||||
|
||||
export default axios.create({
|
||||
API_URL,
|
||||
headers: { headers: { Authorization: `Bearer ${jwt}` } },
|
||||
baseURL: API_URL, headers: { Authorization: `Bearer ${store.state.access_token}` },
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user