routing the rest of implemented features, hits response problem

This commit is contained in:
2019-10-20 16:09:16 +02:00
parent ed3ac2abcb
commit edf236ef8c
5 changed files with 60 additions and 9 deletions

View File

@@ -161,7 +161,10 @@ export default {
this.activeView = viewId;
},
addNewLoot () {
api.fetch("admin/add-loot", "POST", this.pending_loot)
api.fetch("players/0/loot", "POST", {
source_name: "Dummy name",
items: this.pending_loot,
})
.then(() => {
this.pending_loot = []
this.switchView('group');