drafted materio_sapi search block vue integration
This commit is contained in:
13
web/themes/custom/materiotheme/vuejs/api/msapi-axios.js
Normal file
13
web/themes/custom/materiotheme/vuejs/api/msapi-axios.js
Normal file
@ -0,0 +1,13 @@
|
||||
import axios from 'axios'
|
||||
|
||||
// https://github.com/alvar0hurtad0/drupal-vuejs-todo/blob/master/frontend/src/api/axiosInterceptor.js
|
||||
|
||||
// console.log('drupalSettings', drupalSettings);
|
||||
|
||||
export const MSAPI = axios.create({
|
||||
baseURL: window.location.origin + '/' + drupalSettings.path.pathPrefix + `materio_sapi`,
|
||||
withCredentials: true,
|
||||
headers: {
|
||||
"Content-Type": "application/json"
|
||||
}
|
||||
})
|
Reference in New Issue
Block a user