adds events api

This commit is contained in:
2019-10-28 15:29:17 +01:00
parent e9f535ac86
commit 8d1344e0b6
2 changed files with 4 additions and 1 deletions

View File

@@ -75,7 +75,8 @@ export default {
putClaim (itemId) { this.call("claims", "PUT", itemId) },
withdrawClaim (itemId) { this.call("claims", "DELETE", itemId) },
buyItems(items) { this.call("loot", "PUT", items) },
sellItems (items) { this.call("loot", "DELETE", items) },
sellItems (items) { this.call("loot", "DELETE", { items, global_mod: null, players: null }) },
undoLastAction () { this.call("events/last", "DELETE", null) },
},
watch: {
id: {
@@ -100,6 +101,7 @@ export default {
withdrawClaim: this.withdrawClaim,
buyItems: this.buyItems,
sellItems: this.sellItems,
undoLastAction: this.undoLastAction,
},
claims: this.claims,
})