Table data implemented

This commit is contained in:
Lucas Patenaude
2024-04-13 18:40:46 -06:00
parent 8746bf6e20
commit 14a19ccdf7
4 changed files with 21 additions and 3 deletions

View File

@@ -42,6 +42,7 @@
}
#league-stats-container {
width: 100%;
display: flex;
flex: 1;
}

View File

@@ -1,8 +1,7 @@
#league-table-container {
flex: 1;
width: 60%;
background-color: #eaeaea; /* Example background color */
margin: 10px;
border: 1px solid gray;
border-radius: 8px;

View File

@@ -30,7 +30,13 @@ const fetchLeaguesData = async (req, res, next) => {
team_name: team.team.name,
team_crest: team.team.crest
},
})),
games_played: team.playedGames,
wins: team.won,
losses: team.lost,
draws: team.draw,
goal_difference: team.goalDifference,
points: team.points
}))
};
next();
} catch (error) {