Browse Source

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.
pull/2008/head
Vincent Brouwers 2 years ago
parent
commit
413bb06d83
2 changed files with 2 additions and 2 deletions
  1. 2
      frontend/components/configAutoLabeling/form/FileField.vue
  2. 2
      frontend/pages/projects/_id/dataset/import.vue

2
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')
},

2
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')
},

Loading…
Cancel
Save