started routing

This commit is contained in:
2019-07-19 16:57:22 +02:00
parent 01e4d99537
commit 5985796166
8 changed files with 140 additions and 13 deletions
-8
View File
@@ -1,8 +0,0 @@
import axios from 'axios'
export const HTTP = axios.create({
baseURL: `http://jsonplaceholder.typicode.com/`,
headers: {
Authorization: 'Bearer {token}'
}
})
+9
View File
@@ -0,0 +1,9 @@
import axios from 'axios'
export const REST = axios.create({
baseURL: window.location.origin,
withCredentials: true,
headers: {
"Content-Type": "application/json"
}
})