forked from lucaspatenaude/ScoreSpot
Links added to each team in live score cards
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user