LabWork05 finished
This commit is contained in:
parent
fb25e23439
commit
1187149b02
@ -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: [],
|
||||
|
@ -69,7 +69,7 @@ export default {
|
||||
data() {
|
||||
return{
|
||||
manufacturers: [],
|
||||
URL: "http://localhost:8080/",
|
||||
URL: "http://localhost:8080/api/",
|
||||
manufacturer: new Manufacturer(),
|
||||
}
|
||||
},
|
||||
|
@ -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(),
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user