- [API] Segregated API files, Implemented spells-list, component that calls the API
This commit is contained in:
7
client/api/api.js
Normal file
7
client/api/api.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import axios from "axios"
|
||||
|
||||
const url = "http://localhost:2814/api"
|
||||
|
||||
export default axios.create({
|
||||
baseURL: url
|
||||
})
|
||||
Reference in New Issue
Block a user