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

14 lines
350 B
JavaScript
Raw Normal View History

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
// console.log('drupalSettings', drupalSettings);
export const REST = axios.create({
baseURL: `http://dev.materio.com`,
headers: {
2019-04-10 10:47:45 +02:00
Authorization: 'Bearer {token}',
"Content-Type": "application/json"
}
})