started routing
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
import axios from 'axios'
|
||||
|
||||
export const HTTP = axios.create({
|
||||
baseURL: `http://jsonplaceholder.typicode.com/`,
|
||||
headers: {
|
||||
Authorization: 'Bearer {token}'
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,9 @@
|
||||
import axios from 'axios'
|
||||
|
||||
export const REST = axios.create({
|
||||
baseURL: window.location.origin,
|
||||
withCredentials: true,
|
||||
headers: {
|
||||
"Content-Type": "application/json"
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user