Add API method to remove all feeds
This commit is contained in:
parent
51a746fac0
commit
e0bbaaa3b5
@ -37,6 +37,12 @@ $server->register('feed.delete', function($feed_id) {
|
||||
return Model\remove_feed($feed_id);
|
||||
});
|
||||
|
||||
// Delete all feeds
|
||||
$server->register('feed.delete_all', function() {
|
||||
|
||||
return Model\remove_feeds();
|
||||
});
|
||||
|
||||
// Enable a feed
|
||||
$server->register('feed.enable', function($feed_id) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user