Amend Upstream URL

This commit is contained in:
2025-07-15 18:12:46 +02:00
parent 202959dd9e
commit 6b23bfb39f
5 changed files with 19 additions and 11 deletions

View File

@@ -139,8 +139,16 @@ router.beforeEach(async (to) => {
app.use(router);
app.use(ToastService)
let apiUrl = getApiUrl();
if (!apiUrl) {
apiUrl = `http://${apiUrl}`
} else {
apiUrl = ''
}
const axiosInstance = axios.create({
baseURL: getApiUrl() ?? '',
baseURL: apiUrl,
headers: {
'Content-Type': 'application/json'
}