Skip to content

Commit c88c538

Browse files
author
krzysztofwedrowicz
committed
removed additional hateoas wrapper to achieve consistency in endpoint's returns structure
1 parent 862937f commit c88c538

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/io/pillopl/library/lending/patronprofile/web/PatronProfileController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ class PatronProfileController {
5353
private final CancelingHold cancelingHold;
5454

5555
@GetMapping("/profiles/{patronId}")
56-
ResponseEntity<EntityModel<ProfileResource>> patronProfile(@PathVariable UUID patronId) {
57-
return ok(new EntityModel<>(new ProfileResource(patronId)));
56+
ResponseEntity<ProfileResource> patronProfile(@PathVariable UUID patronId) {
57+
return ok(new ProfileResource(patronId));
5858
}
5959

6060
@GetMapping("/profiles/{patronId}/holds/")

0 commit comments

Comments
 (0)