club homepage complete
This commit is contained in:
@@ -108,8 +108,9 @@ app.get('/league/:leagueID', [fetchLeaguesData, fetchLeagueScorerData], (req, re
|
||||
// Clubs Page Middleware
|
||||
|
||||
const fetchClubsData = require('./resources/middleware/clubs-page/get-current-club-information');
|
||||
const fetchClubTopScorers = require('./resources/middleware/clubs-page/get-current-club-top-scorers');
|
||||
|
||||
app.get('/club/:clubID', [fetchClubsData], (req, res) => {
|
||||
app.get('/club/:clubID', [fetchClubsData, fetchClubTopScorers], (req, res) => {
|
||||
// Render the Handlebars view with league data
|
||||
res.render('pages/clubs-page', {
|
||||
clubID: req.params.clubID,
|
||||
@@ -117,8 +118,6 @@ app.get('/club/:clubID', [fetchClubsData], (req, res) => {
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
// *****************************************************
|
||||
// <!-- Section 5 : API Routes -->
|
||||
// *****************************************************
|
||||
|
||||
Reference in New Issue
Block a user