get a list of buyable gear

This commit is contained in:
Negue 2014-08-25 18:23:04 +02:00
parent ef548ec9ed
commit 8fa565e9a0
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'