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:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user