forked from lucaspatenaude/ScoreSpot
Flag added to league header
This commit is contained in:
@@ -18,6 +18,9 @@ const fetchLeaguesData = async (req, res, next) => {
|
||||
|
||||
// Attach the data to res.locals
|
||||
res.locals.league = {
|
||||
area: {
|
||||
league_flag: leagueData.area.flag,
|
||||
},
|
||||
competition: {
|
||||
league_id: leagueData.competition.id,
|
||||
league_name: leagueData.competition.name,
|
||||
|
||||
Reference in New Issue
Block a user