Updates to file structure

This commit is contained in:
Lucas Patenaude
2024-04-30 18:21:38 -06:00
parent c501f39cf1
commit 138b91282b
6 changed files with 8 additions and 8 deletions

View File

@@ -88,26 +88,26 @@ app.use(async function(req, res, next) {
}); });
// Serve static files from the 'public' directory // Serve static files from the 'public' directory
app.use(express.static(path.join(__dirname, 'resources'))); app.use(express.static(path.join(__dirname, 'assets')));
// ***************************************************** // *****************************************************
// <!-- Section 4 : Middleware --> // <!-- Section 4 : Middleware -->
// ***************************************************** // *****************************************************
// Middleware to automatically update live scoreboard // Middleware to automatically update live scoreboard
const fetchMatchesData = require('./resources/middleware/navigation-bar/current-match-information'); const fetchMatchesData = require('./assets/middleware/navigation-bar/current-match-information');
app.use(fetchMatchesData); app.use(fetchMatchesData);
//Middleware to automatically update in-game time abbreviations //Middleware to automatically update in-game time abbreviations
const convert_time = require('./resources/middleware/navigation-bar/convert-time'); const convert_time = require('./assets/middleware/navigation-bar/convert-time');
app.use(convert_time); app.use(convert_time);
// Leagues Page Middleware // Leagues Page Middleware
const fetchLeaguesData = require('./resources/middleware/leagues-page/get-current-league-information'); const fetchLeaguesData = require('./assets/middleware/leagues-page/get-current-league-information');
const fetchLeagueScorerData = require('./resources/middleware/leagues-page/get-current-league-top-scorers'); const fetchLeagueScorerData = require('./assets/middleware/leagues-page/get-current-league-top-scorers');
app.get('/league/:leagueID', [fetchLeaguesData, fetchLeagueScorerData], (req, res) => { app.get('/league/:leagueID', [fetchLeaguesData, fetchLeagueScorerData], (req, res) => {
// Render the Handlebars view with league data // Render the Handlebars view with league data
@@ -120,7 +120,7 @@ app.get('/league/:leagueID', [fetchLeaguesData, fetchLeagueScorerData], (req, re
// Clubs Page Middleware // Clubs Page Middleware
const fetchClubsData = require('./resources/middleware/clubs-page/get-current-club-information'); const fetchClubsData = require('./assets/middleware/clubs-page/get-current-club-information');
app.get('/club/:clubID', [fetchClubsData], (req, res) => { app.get('/club/:clubID', [fetchClubsData], (req, res) => {
// Render the Handlebars view with league data // Render the Handlebars view with league data
@@ -264,7 +264,7 @@ app.get('/logout', (req, res) => {
*************************/ *************************/
// Import and call generateLeagueRoutes function // Import and call generateLeagueRoutes function
const generateLeagueRoutes = require('./resources/routes/league-pages/generate-league-routes'); const generateLeagueRoutes = require('./assets/routes/league-pages/generate-league-routes');
generateLeagueRoutes(app); generateLeagueRoutes(app);
/************************ /************************
@@ -272,7 +272,7 @@ generateLeagueRoutes(app);
*************************/ *************************/
// Import and call generateLeagueRoutes function // Import and call generateLeagueRoutes function
const generateClubRoutes = require('./resources/routes/club-pages/generate-club-routes'); const generateClubRoutes = require('./assets/routes/club-pages/generate-club-routes');
generateClubRoutes(app); generateClubRoutes(app);
/************************ /************************

View File

Before

Width:  |  Height:  |  Size: 2.0 MiB

After

Width:  |  Height:  |  Size: 2.0 MiB

View File

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 1.2 MiB

View File

Before

Width:  |  Height:  |  Size: 2.1 MiB

After

Width:  |  Height:  |  Size: 2.1 MiB

View File

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 29 KiB