LabWork05 finished

This commit is contained in:
Артём Алейкин 2023-06-13 15:44:05 +04:00
parent fb25e23439
commit 1187149b02
4 changed files with 4 additions and 4 deletions

View File

@ -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: [],

View File

@ -69,7 +69,7 @@ export default {
data() {
return{
manufacturers: [],
URL: "http://localhost:8080/",
URL: "http://localhost:8080/api/",
manufacturer: new Manufacturer(),
}
},

View File

@ -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(),
}

View File

@ -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);