Skip to content

Commit 421ef2d

Browse files
authored
Merge pull request #39 from starspire/fix/patron-profile-hateoas-consistency
[FIX] Hateoas consistency and tests fixes
2 parents 862937f + c88c538 commit 421ef2d

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)