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

feat: games for team fixed and games for league API

parent 35f4e01e
No related branches found
No related tags found
No related merge requests found
package cz.muni.fi.pa165.icehockeymanager.rest.controller;
import cz.muni.fi.pa165.icehockeymanager.dto.PlayerCreateDTO;
import cz.muni.fi.pa165.icehockeymanager.dto.PlayerDTO;
import cz.muni.fi.pa165.icehockeymanager.dto.TeamCreateDTO;
import cz.muni.fi.pa165.icehockeymanager.dto.TeamDTO;
import cz.muni.fi.pa165.icehockeymanager.dto.*;
import cz.muni.fi.pa165.icehockeymanager.facades.LeagueManagerFacade;
import cz.muni.fi.pa165.icehockeymanager.facades.TeamManagerFacade;
import cz.muni.fi.pa165.icehockeymanager.facades.UserFacade;
......@@ -68,9 +65,13 @@ public class IceHockeyManagerApi {
}
@GetMapping("/game/team/{id}")
public final Collection<TeamDTO> getGamesForTeam(@PathVariable Long id) {
return userFacade.getTeamsInLeague();
public final Collection<GameDTO> getGamesForTeam(@PathVariable Long id) {
return userFacade.getGamesForTeam(id);
}
@GetMapping("/game/all")
public final Collection<GameDTO> getGamesForLeague() {
return userFacade.getGamesForLeague();
}
}
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