add GET /api/v2/content which lists all item definitions @magicmicky
This commit is contained in:
@@ -17,6 +17,10 @@ var api = module.exports;
|
||||
|
||||
// api.purchase // Shared.ops
|
||||
|
||||
api.getContent = function(req, res, next) {
|
||||
res.json(shared.content);
|
||||
}
|
||||
|
||||
/*
|
||||
------------------------------------------------------------------------
|
||||
Tasks
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user