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