2019-04-09 00:21:00 +02:00
|
|
|
import axios from 'axios'
|
|
|
|
|
2019-04-10 10:47:45 +02:00
|
|
|
// https://github.com/alvar0hurtad0/drupal-vuejs-todo/blob/master/frontend/src/api/axiosInterceptor.js
|
|
|
|
|
2019-04-09 00:21:00 +02:00
|
|
|
// console.log('drupalSettings', drupalSettings);
|
|
|
|
|
2019-04-11 00:12:23 +02:00
|
|
|
export const REST = axios.create({
|
2019-04-09 00:21:00 +02:00
|
|
|
baseURL: `http://dev.materio.com`,
|
|
|
|
headers: {
|
2019-04-10 10:47:45 +02:00
|
|
|
Authorization: 'Bearer {token}',
|
|
|
|
"Content-Type": "application/json"
|
2019-04-09 00:21:00 +02:00
|
|
|
}
|
|
|
|
})
|