add GET /api/v2/content which lists all item definitions @magicmicky

This commit is contained in:
Tyler Renelle 2013-12-22 12:09:44 -07:00
parent 067fbe861c
commit faeeecdf04
2 changed files with 7 additions and 0 deletions

View file

@ -17,6 +17,10 @@ var api = module.exports;
// api.purchase // Shared.ops
api.getContent = function(req, res, next) {
res.json(shared.content);
}
/*
------------------------------------------------------------------------
Tasks

View file

@ -30,6 +30,9 @@ router.get('/status', function(req, res) {
// User
// ---------------------------------
// List all keys and objects in content.coffee that clients ned to know about
router.get('/content', user.getContent);
// Data Export
router.get('/export/history',auth.auth,dataexport.history); //[todo] encode data output options in the data controller and use these to build routes