1935af83c3
Cleanup Use the http factory everywhere instead of the created element Use the current domain if the api path is relative to the frontend host Format Prevent setting an empty url Fix styling Add changing api url Add change url component Co-authored-by: kolaente <k@knt.li> Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/264 Co-Authored-By: konrad <konrad@kola-entertainments.de> Co-Committed-By: konrad <konrad@kola-entertainments.de>
7 lines
118 B
JavaScript
7 lines
118 B
JavaScript
import axios from 'axios'
|
|
|
|
export const HTTPFactory = () => {
|
|
return axios.create({
|
|
baseURL: window.API_URL,
|
|
})
|
|
}
|