Skip to content

Commit

Permalink
Merge pull request ddd-by-examples#39 from starspire/fix/patron-profi…
Browse files Browse the repository at this point in the history
…le-hateoas-consistency

[FIX] Hateoas consistency and tests fixes
  • Loading branch information
pilloPl authored Sep 26, 2019
2 parents 862937f + c88c538 commit 421ef2d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ class PatronProfileController {
private final CancelingHold cancelingHold;

@GetMapping("/profiles/{patronId}")
ResponseEntity<EntityModel<ProfileResource>> patronProfile(@PathVariable UUID patronId) {
return ok(new EntityModel<>(new ProfileResource(patronId)));
ResponseEntity<ProfileResource> patronProfile(@PathVariable UUID patronId) {
return ok(new ProfileResource(patronId));
}

@GetMapping("/profiles/{patronId}/holds/")
Expand Down

0 comments on commit 421ef2d

Please sign in to comment.