Links added to each team in live score cards

This commit is contained in:
Lucas Patenaude
2024-04-23 21:18:34 -06:00
parent 6fdb1d5f74
commit 4d8a87ed57
3 changed files with 19 additions and 8 deletions

View File

@@ -35,10 +35,12 @@ const fetchMatchesData = async (req, res, next) => {
// Extract relevant data from the API response
const matches = response.data.matches.map(match => ({
homeTeam: {
teamID: match.homeTeam.id,
name: match.homeTeam.tla,
crest: match.homeTeam.crest,
},
awayTeam: {
teamID: match.awayTeam.id,
name: match.awayTeam.tla,
crest: match.awayTeam.crest,
},