Skip to content
Snippets Groups Projects
Commit 9b7fa252 authored by Erik Moravec's avatar Erik Moravec
Browse files

refactor: removed unused sample data

parent 054b18f4
No related branches found
No related tags found
No related merge requests found
......@@ -14,33 +14,6 @@ import {GameShort} from '../models/game-short';
})
export class GameService {
teams: Team[] = [
{id: 1, name: 'Toronto Maple Leafs'},
{id: 2, name: 'Boston Bruins'}
];
games: Game[] = [
{
id: 1,
gameDateTime: "2021-04-26T17:10:00Z",
homeTeam: this.teams[0],
awayTeam: this.teams[1],
winner: this.teams[0],
homeTeamScore: 2,
awayTeamScore: 0
},
{
id: 2,
gameDateTime: "2021-05-26T17:10:00Z",
homeTeam: this.teams[1],
awayTeam: this.teams[0],
winner: this.teams[1],
homeTeamScore: 2,
awayTeamScore: 4
},
];
getAllUrl: string = 'http://localhost:8080/pa165/api/public/game/all';
createUrl: string = 'http://localhost:8080/pa165/api/manage/league/game/create';
updateWinnerUrl: string = 'http://localhost:8080/pa165/api/manage/league/game/setWinner';
......
......@@ -13,26 +13,6 @@ import {RecruitVeteran} from '../models/recruit-veteran';
})
export class PlayerService {
freePlayers: Player[] = [
{id: 4, name: "Bobby Orr"},
{id: 5, name: "Wayne Gretzky"},
{id: 6, name: "Denis Potvin"}
];
players: Player[] = [
{id: 1, name: "Sidney Cosby"},
{id: 2, name: "Alexander Ovechkin"},
{id: 3, name: "Gordie Howe"},
{id: 4, name: "Bobby Orr"},
{id: 5, name: "Wayne Gretzky"},
{id: 6, name: "Denis Potvin"}
];
teamOnePlayers: Player[] = [
{id: 1, name: "Sidney Cosby"},
{id: 2, name: "Alexander Ovechkin"},
];
getAllFreeUrl: string = 'http://localhost:8080/pa165/api/public/player/free';
getAllUrl: string = 'http://localhost:8080/pa165/api/public/player/all';
getForTeamUrl: string = 'http://localhost:8080/pa165/api/public/player/team/'
......
......@@ -15,11 +15,6 @@ import { AuthServiceService } from './auth-service.service';
})
export class TeamService {
teams: Team[] = [
{id: 1, name: 'Toronto Maple Leafs'},
{id: 2, name: 'Boston Bruins'}
];
getAllUrl: string = 'http://localhost:8080/pa165/api/public/team/all';
createUrl: string = 'http://localhost:8080/pa165/api/manage/league/team/create';
......
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