Split the baseUrl

This commit is contained in:
Oliver Davies 2019-06-04 21:21:55 +01:00
parent 150c0f7de1
commit 1102229d84

View file

@ -57,9 +57,11 @@ export default {
}
}
const baseUrl = 'http://drupaltestcamp.docksal';
axios({
method: 'post',
url: 'http://drupaltestcamp.docksal/jsonapi/node/session',
url: `${baseUrl}/jsonapi/node/session`,
data: { data },
headers: {
'Accept': 'application/vnd.api+json',