Skip to content
Snippets Groups Projects
Commit 63d47116 authored by Bauer Matthis's avatar Bauer Matthis
Browse files

merge commit

parent 9c98104e
No related branches found
No related tags found
1 merge request!7Dev in Main Merge
......@@ -37,7 +37,7 @@ public class TournamentController {
@PostMapping("/{tournamentId}/teams")
public Team createTeam(@PathVariable UUID tournamentId,
@RequestBody String teamName) throws TournamentIdNotFoundException {
return service.createTeamFromTournament(tournamentId, teamName);
return service.createTeam(tournamentId, teamName);
}
@DeleteMapping("/{tournamentId}/teams/{teamId}")
public UUID removeTeamFromTournament(@PathVariable UUID tournamentId,
......
......@@ -70,7 +70,7 @@ public class TournamentService {
return playerId;
}
public Team createTeamFromTournament(UUID tournamentId, String teamName) throws TournamentIdNotFoundException {
public Team createTeam(UUID tournamentId, String teamName) throws TournamentIdNotFoundException {
Tournament tournament = tournamentRepository.findById(tournamentId)
.orElseThrow(() -> new TournamentIdNotFoundException(tournamentId));
......
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