fix: make comic-page endpoint public (like covers)

The img src tag doesn't send auth headers, so the comic-page
endpoint needs to be publicly accessible like the cover endpoint.
This commit is contained in:
clawdbot 2026-02-21 12:07:53 -05:00
parent 2245d7e9c6
commit c6c8b378ab
2 changed files with 18 additions and 6 deletions

View file

@ -128,7 +128,7 @@ class ApiRouter {
this.router.patch('/items/:id/ebook/:fileid/status', LibraryItemController.middleware.bind(this), LibraryItemController.updateEbookFileStatus.bind(this))
// Comic page routes - server-side extraction with caching for performance
this.router.get('/items/:id/comic-pages/:fileid?', LibraryItemController.middleware.bind(this), LibraryItemController.getComicPages.bind(this))
this.router.get('/items/:id/comic-page/:page/:fileid?', LibraryItemController.middleware.bind(this), LibraryItemController.getComicPage.bind(this))
this.router.get('/items/:id/comic-page/:page/:fileid?', LibraryItemController.getComicPage.bind(this))
//
// User Routes