forked from lucaspatenaude/ScoreSpot
Created new users database with userID, Created favoriteteams database, implemented add favorite team function but not working just yet
This commit is contained in:
@@ -15,7 +15,7 @@ const fetchClubsData = async (req, res, next) => {
|
||||
|
||||
// Extract relevant data from the API response
|
||||
const clubData = response.data;
|
||||
|
||||
res.locals.user = users
|
||||
// Attach the data to res.locals
|
||||
res.locals.club = {
|
||||
area: {
|
||||
|
||||
@@ -17,7 +17,7 @@ const fetchLeaguesData = async (req, res, next) => {
|
||||
const leagueData = response.data;
|
||||
|
||||
// Attach the data to res.locals
|
||||
res.locals.username = req.session.user.username;
|
||||
//res.locals.username = req.session.user.username;
|
||||
console.log(req.session.user)
|
||||
res.locals.league = {
|
||||
area: {
|
||||
|
||||
Reference in New Issue
Block a user