fix get all endpoint

This commit is contained in:
2025-12-19 15:41:29 +01:00
parent de164498e6
commit e34fa841bc

View File

@@ -50,7 +50,7 @@ public class TeamRestController {
* @return a HttpStatus.NOT_FOUND ResponseEntity if the database does not contain any teams, * @return a HttpStatus.NOT_FOUND ResponseEntity if the database does not contain any teams,
* else a ResponseEntity containing the list of all Teams in WSTO form * else a ResponseEntity containing the list of all Teams in WSTO form
*/ */
@GetMapping("all") @GetMapping("")
public ResponseEntity<@NonNull List<TeamWSTO>> getAllTeams(){ public ResponseEntity<@NonNull List<TeamWSTO>> getAllTeams(){
List<Team> teams = teamService.getTeams(); List<Team> teams = teamService.getTeams();
List<TeamWSTO> teamWSTOs = new ArrayList<>(); List<TeamWSTO> teamWSTOs = new ArrayList<>();