materio-d9/web/themes/custom/materiotheme/vuejs/api/graphql-axios.js

18 lines
487 B
JavaScript
Raw Normal View History

import axios from 'axios'
// https://github.com/alvar0hurtad0/drupal-vuejs-todo/blob/master/frontend/src/api/axiosInterceptor.js
// console.log('drupalSettings', drupalSettings);
console.log(window.location);
export const MGQ = axios.create({
baseURL: window.location.origin+`/mgq`,
withCredentials: true,
headers: {
'Accept': 'application/json',
// Accept: 'application/vnd.api+json'
// Authorization: 'Basic {token}',
"Content-Type": "application/json"
}
})