Files
habitica/website/server/controllers/api-v3
negue 54153ec299 Refactor Purchase API - Part 1 (#9714)
* move to shops/purchase

* move files to /buy/ instead of /purchase/

* refactor buy.js - add more itemtypes

* revert moving special purchases to buy

* only use buyOp from api-routes

* fix buying potion client-side

* undo import buy instead of purchase

* enable potion bulk purchase - use buyGear as fallback (as before)

* move quantity purchase inside buyHealthPotion

* move quantity purchase inside buyQuest

* move quantity purchase inside buySpecialSpell + add analytics

* remove unused quantity variable - set req.type on specialKeys

* fix `buyKnownKeys` on buy api

* test buy-special-spell if not enough gold

* more buy ops coverage

* fix lint

* buyMysterySet: test for window.confirm, buyQuest: check for Masterclassers unlock

* fix test & lint

* re-create package-lock.json to travis build ?

* use global.window instead of method argument

* add back canOwn checks

* remove buyMysterySet confirm request
2018-02-10 11:14:40 +01:00
..
2018-02-04 13:28:05 +01:00
2017-10-31 12:57:44 -06:00
2018-01-30 08:23:20 -07:00
2017-10-12 16:44:28 +02:00
2016-10-19 21:31:07 -05:00
2017-06-08 17:10:22 -07:00
2017-08-22 18:26:53 +02:00
2017-01-13 14:06:46 -07:00
2018-02-09 00:35:51 +00:00
2018-02-04 13:28:05 +01:00
2016-11-03 08:31:30 -05:00
2018-02-09 13:46:55 +01:00
2018-02-10 11:14:40 +01:00
2017-07-17 14:28:25 -07:00