- Moved api folder and added alias to avoid ../../../ memes, also deleted useless files
This commit is contained in:
9
client/src/api/api.js
Normal file
9
client/src/api/api.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import axios from "axios"
|
||||
|
||||
const url = "http://localhost:2814/api"
|
||||
|
||||
axios.defaults.headers.common['auracle_key'] = process.env.VUE_APP_API_KEY
|
||||
|
||||
export default axios.create({
|
||||
baseURL: url
|
||||
})
|
||||
Reference in New Issue
Block a user