From 1187149b0225eb713ee80d0bda0ea89ba26865b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=90=D0=BB=D0=B5=D0=B9?= =?UTF-8?q?=D0=BA=D0=B8=D0=BD?= Date: Tue, 13 Jun 2023 15:44:05 +0400 Subject: [PATCH] LabWork05 finished --- frontend/spa-vue/src/pages/categories.vue | 2 +- frontend/spa-vue/src/pages/manufacturers.vue | 2 +- frontend/spa-vue/src/pages/products.vue | 2 +- frontend/spa-vue/src/services/DataService.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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);