Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
removed redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-hellen committed Apr 10, 2024
1 parent fddfd15 commit b2e7d33
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/main/java/org/folio/sample/controller/BookController.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,6 @@ public ResponseEntity<BookDTO> getBook(UUID bookId) {
);
}

public ResponseEntity<List<BookDTO>> getAllAvailable() {
log.info("Called GET /books/available");

return new ResponseEntity<>(
bookService.findAllAvailable().stream().map(bookMapper::toDto).toList(),
HttpStatus.OK
);
}

public ResponseEntity<BookDTO> updateBook(UUID bookId, BookForCreationDTO newBook) {
log.info("Called PUT /books/{}", bookId);

Expand Down

0 comments on commit b2e7d33

Please sign in to comment.