diff --git a/frontend/spa-vue/src/pages/categories.vue b/frontend/spa-vue/src/pages/categories.vue index 4b39e5d..a427873 100644 --- a/frontend/spa-vue/src/pages/categories.vue +++ b/frontend/spa-vue/src/pages/categories.vue @@ -100,7 +100,7 @@ export default { data() { return{ categories: [], - URL: "http://localhost:8080/", + URL: "http://localhost:8080/api/", category: new Category(), editedCategory: new Category(), products: [], diff --git a/frontend/spa-vue/src/pages/manufacturers.vue b/frontend/spa-vue/src/pages/manufacturers.vue index e9afeec..ba52830 100644 --- a/frontend/spa-vue/src/pages/manufacturers.vue +++ b/frontend/spa-vue/src/pages/manufacturers.vue @@ -69,7 +69,7 @@ export default { data() { return{ manufacturers: [], - URL: "http://localhost:8080/", + URL: "http://localhost:8080/api/", manufacturer: new Manufacturer(), } }, diff --git a/frontend/spa-vue/src/pages/products.vue b/frontend/spa-vue/src/pages/products.vue index f233779..37bff91 100644 --- a/frontend/spa-vue/src/pages/products.vue +++ b/frontend/spa-vue/src/pages/products.vue @@ -133,7 +133,7 @@ export default { manufacturers: [], productManufacturers: [], manufacturerId: 0, - URL: "http://localhost:8080/", + URL: "http://localhost:8080/api/", product: new Product(), editedProduct: new Product(), } diff --git a/frontend/spa-vue/src/services/DataService.js b/frontend/spa-vue/src/services/DataService.js index b6ea12c..78010b9 100644 --- a/frontend/spa-vue/src/services/DataService.js +++ b/frontend/spa-vue/src/services/DataService.js @@ -13,7 +13,7 @@ function toJSON(data) { } export default class DataService { - static dataUrlPrefix = 'http://localhost:8079/'; + static dataUrlPrefix = 'http://localhost:8079/api'; static async readAll(url, transformer) { const response = await axios.get(this.dataUrlPrefix + url);