Split the baseUrl
This commit is contained in:
parent
150c0f7de1
commit
1102229d84
|
@ -57,9 +57,11 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const baseUrl = 'http://drupaltestcamp.docksal';
|
||||||
|
|
||||||
axios({
|
axios({
|
||||||
method: 'post',
|
method: 'post',
|
||||||
url: 'http://drupaltestcamp.docksal/jsonapi/node/session',
|
url: `${baseUrl}/jsonapi/node/session`,
|
||||||
data: { data },
|
data: { data },
|
||||||
headers: {
|
headers: {
|
||||||
'Accept': 'application/vnd.api+json',
|
'Accept': 'application/vnd.api+json',
|
||||||
|
|
Loading…
Reference in a new issue