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

@@ -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) {