Skip to content

Commit a960458

Browse files
author
Mohamed
committed
Fix: Re-ran spotless apply
1 parent 035b0c9 commit a960458

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lesson_16/api/api_app/src/main/java/com/codedifferently/lesson16/web/MediaItemsController.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,20 @@ public MediaItemsController(Library library) throws IOException {
3434
this.library = library;
3535
this.librarian = library.getLibrarians().stream().findFirst().orElseThrow();
3636
}
37+
3738
@GetMapping("/items")
3839
public GetMediaItemsResponse getItems() {
3940
Set<MediaItem> items = library.search(SearchCriteria.builder().build());
4041
List<MediaItemResponse> responseItems = items.stream().map(MediaItemResponse::from).toList();
4142
var response = GetMediaItemsResponse.builder().items(responseItems).build();
4243
return response;
4344
}
45+
4446
/**
4547
* Post an item to the specified endpoint.
4648
*
47-
* @param req the request object for creating a media item
48-
* @return the response object for creating a media item
49+
* @param req the request object for creating a media item
50+
* @return the response object for creating a media item
4951
*/
5052
@PostMapping("/items")
5153
public CreateMediaItemResponse postItem(@Valid @RequestBody CreateMediaItemRequest req) {

0 commit comments

Comments
 (0)