LabWork05 finished
This commit is contained in:
parent
fb25e23439
commit
1187149b02
@ -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: [],
|
||||||
|
@ -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(),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -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(),
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user