chore(api): drop unused book download proxy (#428)

the book download proxy code path should never be called.  this is
because the book download URL received as part of the kobo proxy points
at the Rakuten Kobo CDN rather than at grimmory.  further, even if this
code could download the file from the CDN (it doesn't), it would be
pointless as we don't return it.  instead of fixing the return this
drops the proxy from that code path
This commit is contained in:
James Ward
2026-04-22 17:27:09 -04:00
committed by Zach Yale
parent f0e4497b5a
commit 907ad09d5b
@@ -176,11 +176,9 @@ public class KoboController {
public void downloadBook(@Parameter(description = "Book ID") @PathVariable String bookId, HttpServletResponse response) {
if (StringUtils.isNumeric(bookId)) {
bookDownloadService.downloadKoboBook(Long.parseLong(bookId), response);
} else if (isForwardingToKoboStore()) {
koboServerProxy.proxyCurrentRequest(null, false);
} else {
throw ApiError.GENERIC_NOT_FOUND.createException("Not Found");
}
throw ApiError.GENERIC_NOT_FOUND.createException("Not Found");
}
@Operation(summary = "Delete book from Kobo library", description = "Delete a book from the user's Kobo library.")