2019-05-31 15:01:54 +02:00
|
|
|
import axios from 'axios'
|
|
|
|
|
|
|
|
// https://github.com/alvar0hurtad0/drupal-vuejs-todo/blob/master/frontend/src/api/axiosInterceptor.js
|
|
|
|
|
|
|
|
// console.log('drupalSettings', drupalSettings);
|
|
|
|
|
2019-05-31 23:05:37 +02:00
|
|
|
export const MA = axios.create({
|
|
|
|
baseURL: window.location.origin + '/' + drupalSettings.path.pathPrefix,
|
2019-05-31 15:01:54 +02:00
|
|
|
withCredentials: true,
|
|
|
|
headers: {
|
|
|
|
"Content-Type": "application/json"
|
|
|
|
}
|
|
|
|
})
|