Comment clean-up done to app.js

This commit is contained in:
2024-09-03 23:29:29 -06:00
parent f62d0d64b6
commit 64ec5a43b2

View File

@@ -140,9 +140,9 @@ app.get("/club/:clubID", [fetchClubsData], (req, res) => {
// <!-- Section 5 : API Routes --> // <!-- Section 5 : API Routes -->
// ***************************************************** // *****************************************************
/************************ // ************************
Login Page Routes // Login Page Routes
*************************/ // *************************
// Redirect to the /login endpoint // Redirect to the /login endpoint
app.get("/", (req, res) => { app.get("/", (req, res) => {
@@ -189,9 +189,9 @@ app.post("/login", async (req, res) => {
} }
}); });
/************************ // **************************
Registration Page Routes // Registration Page Routes
*************************/ // **************************
// Render registration page for /register route // Render registration page for /register route
app.get("/register", (req, res) => { app.get("/register", (req, res) => {
@@ -245,9 +245,9 @@ app.post("/register", async (req, res) => {
} }
}); });
/************************ // *************************
Home Page Routes // Home Page Routes
*************************/ // *************************
app.get("/home", (req, res) => { app.get("/home", (req, res) => {
const loggedIn = req.session.user ? true : false; const loggedIn = req.session.user ? true : false;
@@ -266,25 +266,25 @@ app.get("/logout", (req, res) => {
}); });
}); });
/************************ // *************************
League Page Routes // League Page Routes
*************************/ // *************************
// Import and call generateLeagueRoutes function // Import and call generateLeagueRoutes function
const generateLeagueRoutes = require("./routes/league-pages/generate-league-routes"); const generateLeagueRoutes = require("./routes/league-pages/generate-league-routes");
generateLeagueRoutes(app); generateLeagueRoutes(app);
/************************ // *************************
Club Page Routes // Club Page Routes
*************************/ // *************************
// Import and call generateLeagueRoutes function // Import and call generateLeagueRoutes function
const generateClubRoutes = require("./routes/club-pages/generate-club-routes"); const generateClubRoutes = require("./routes/club-pages/generate-club-routes");
generateClubRoutes(app); generateClubRoutes(app);
/************************ // *************************
Favorite Team Database // Favorite Team Database
*************************/ // *************************
// Function to add a new row to the FavoriteTeams table // Function to add a new row to the FavoriteTeams table
// database configuration // database configuration