Merge pull request #3919 from negue/getBuyableGear

API: get a list of buyable gear
This commit is contained in:
Tyler Renelle 2014-08-25 16:55:31 -06:00
commit 8d0611e888
2 changed files with 11 additions and 0 deletions

View file

@ -161,6 +161,12 @@ api.getTask = function(req, res, next) {
*/
// api.buy // handled in Shard.ops
api.getBuyList = function (req, res, next) {
var list = shared.updateStore(res.locals.user);
return res.json(200, list);
};
/*
------------------------------------------------------------------------
User

View file

@ -152,6 +152,11 @@ module.exports = (swagger, v2) ->
# Inventory
"/user/inventory/buy":
spec:
description: "Get a list of buyable gear"
action: user.getBuyList
"/user/inventory/buy/{key}":
spec:
method: 'POST'