Add taxonomy routes

This commit is contained in:
John Furrow
2016-07-02 01:22:59 -07:00
parent 2ce7eaea13
commit cdb6e8cc6d
+12
View File
@@ -72,10 +72,22 @@ router.post('/torrents/delete', function(req, res, next) {
client.deleteTorrents(req.body.hash, ajaxUtil.getResponseFn(res));
});
router.get('/torrents/taxonomy', function(req, res, next) {
client.getTorrentTaxonomy(ajaxUtil.getResponseFn(res));
});
router.patch('/torrents/taxonomy', function(req, res, next) {
client.setTaxonomy(req.body, ajaxUtil.getResponseFn(res));
});
router.get('/torrents/status-count', function(req, res, next) {
client.getTorrentStatusCount(ajaxUtil.getResponseFn(res));
});
router.get('/torrents/tag-count', function(req, res, next) {
client.getTorrentTagCount(ajaxUtil.getResponseFn(res));
});
router.get('/torrents/tracker-count', function(req, res, next) {
client.getTorrentTrackerCount(ajaxUtil.getResponseFn(res));
});