Skip to content
Snippets Groups Projects
Commit f9bfeea4 authored by Ján Dovjak's avatar Ján Dovjak
Browse files

feat: recruitNewPlayer - @Valid and @RequestBody added

parent 7f5f9aa2
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ public class IceHockeyManagerApi {
}
@PostMapping("/player/recruitNew")
public final void recruitNewPlayer(PlayerCreateDTO player) {
public final void recruitNewPlayer(@Valid @RequestBody PlayerCreateDTO player) {
teamManagerFacade.recruitNewPlayer(player);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment