Add RSS feeds config page

This commit is contained in:
Shawn Hoffman 2023-08-22 09:42:55 -07:00
parent 7222171c5b
commit 13427b9f70
8 changed files with 338 additions and 7 deletions

View file

@ -5,6 +5,14 @@ const libraryItemsBookFilters = require('../utils/queries/libraryItemsBookFilter
class RSSFeedController {
constructor() { }
async getAll(req, res) {
const feeds = await this.rssFeedManager.getFeeds()
res.json({
feeds: feeds.map(f => f.toJSON()),
minified: feeds.map(f => f.toJSONMinified())
})
}
// POST: api/feeds/item/:itemId/open
async openRSSFeedForItem(req, res) {
const options = req.body || {}