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() { data() {
return{ return{
categories: [], categories: [],
URL: "http://localhost:8080/", URL: "http://localhost:8080/api/",
category: new Category(), category: new Category(),
editedCategory: new Category(), editedCategory: new Category(),
products: [], products: [],

View File

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

View File

@ -133,7 +133,7 @@ export default {
manufacturers: [], manufacturers: [],
productManufacturers: [], productManufacturers: [],
manufacturerId: 0, manufacturerId: 0,
URL: "http://localhost:8080/", URL: "http://localhost:8080/api/",
product: new Product(), product: new Product(),
editedProduct: new Product(), editedProduct: new Product(),
} }

View File

@ -13,7 +13,7 @@ function toJSON(data) {
} }
export default class DataService { export default class DataService {
static dataUrlPrefix = 'http://localhost:8079/'; static dataUrlPrefix = 'http://localhost:8079/api';
static async readAll(url, transformer) { static async readAll(url, transformer) {
const response = await axios.get(this.dataUrlPrefix + url); const response = await axios.get(this.dataUrlPrefix + url);