From 413bb06d833764c6964145e128f82a4441865888 Mon Sep 17 00:00:00 2001 From: Vincent Brouwers Date: Tue, 20 Sep 2022 11:49:54 +0200 Subject: [PATCH] Replace hardcoded URLs by configurable baseURL Note that these URLs should probably not be defined in the view anyways. I patched them here because I am not familiar enough with the project to fix this cleanly. --- frontend/components/configAutoLabeling/form/FileField.vue | 2 +- frontend/pages/projects/_id/dataset/import.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/components/configAutoLabeling/form/FileField.vue b/frontend/components/configAutoLabeling/form/FileField.vue index bb348504..ae71d752 100644 --- a/frontend/components/configAutoLabeling/form/FileField.vue +++ b/frontend/components/configAutoLabeling/form/FileField.vue @@ -35,7 +35,7 @@ export default { return { myFiles: [], server: { - url: '/v1/fp', + url: `${process.env.baseUrl}/fp`, headers: { 'X-CSRFToken': Cookies.get('csrftoken') }, diff --git a/frontend/pages/projects/_id/dataset/import.vue b/frontend/pages/projects/_id/dataset/import.vue index 3aede52a..2ed86d00 100644 --- a/frontend/pages/projects/_id/dataset/import.vue +++ b/frontend/pages/projects/_id/dataset/import.vue @@ -119,7 +119,7 @@ export default { ], requiredRules: [(v) => !!v || 'Field value is required'], server: { - url: '/v1/fp', + url: `${process.env.baseUrl}/fp`, headers: { 'X-CSRFToken': Cookies.get('csrftoken') },