Update get all feeds route to be admin-only, map translation strings

This commit is contained in:
advplyr 2023-08-22 16:37:22 -05:00
parent 24989e73ae
commit 469167df66
15 changed files with 60 additions and 18 deletions

View file

@ -298,7 +298,7 @@ class ApiRouter {
//
// RSS Feed Routes (Admin and up)
//
this.router.get('/feeds', RSSFeedController.getAll.bind(this))
this.router.get('/feeds', RSSFeedController.middleware.bind(this), RSSFeedController.getAll.bind(this))
this.router.post('/feeds/item/:itemId/open', RSSFeedController.middleware.bind(this), RSSFeedController.openRSSFeedForItem.bind(this))
this.router.post('/feeds/collection/:collectionId/open', RSSFeedController.middleware.bind(this), RSSFeedController.openRSSFeedForCollection.bind(this))
this.router.post('/feeds/series/:seriesId/open', RSSFeedController.middleware.bind(this), RSSFeedController.openRSSFeedForSeries.bind(this))