fix conflicts and rework routes

This commit is contained in:
Adrian Thompson
2020-09-07 14:49:24 +02:00
27 changed files with 6208 additions and 4055 deletions

View File

@@ -56,13 +56,13 @@ export default {
},
method: "post"
}
fetch("http://localhost:30030/api/request", options)
fetch("http://localhost:30030/api/request/new-wine", options)
.then(res => res.json())
},
async deleteWine(wine) {
if (window.confirm("Er du sikker på at du vil slette vinen?")) {
let response = await deleteRequestedWine(wine);
if (response) {
if (response['success'] == true) {
this.$emit('wineDeleted', wine);
} else {
alert("Klarte ikke slette vinen");