mirror of
https://github.com/zoriya/flood.git
synced 2026-06-02 11:06:35 +00:00
Add taxonomy routes
This commit is contained in:
@@ -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));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user