mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-05-19 20:28:43 +00:00
add GET /api/v2/content which lists all item definitions @magicmicky
This commit is contained in:
parent
067fbe861c
commit
faeeecdf04
2 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue