mirror of
https://github.com/PaulReichmuth/timekeep-backend.git
synced 2025-12-22 22:41:59 +00:00
fix get all endpoint
This commit is contained in:
@@ -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<>();
|
||||||
|
|||||||
Reference in New Issue
Block a user