Added more API examples

This commit is contained in:
2018-03-28 01:59:14 +02:00
parent c5de0c6d6f
commit bf6a28faca
9 changed files with 69 additions and 43 deletions

View File

@ -32,7 +32,7 @@ func BuyItem(ctx *aero.Context) string {
return ctx.Error(http.StatusBadRequest, "Invalid item quantity", err)
}
item, err := arn.GetItem(itemID)
item, err := arn.GetShopItem(itemID)
if err != nil {
return ctx.Error(http.StatusInternalServerError, "Error fetching item data", err)

View File

@ -19,7 +19,7 @@ func Get(ctx *aero.Context) string {
return ctx.Error(http.StatusUnauthorized, "Not logged in", nil)
}
items, err := arn.AllItems()
items, err := arn.AllShopItems()
if err != nil {
return ctx.Error(http.StatusInternalServerError, "Error fetching shop item data", err)