diff --git a/src/app.js b/src/app.js index ba06693..6d0461b 100644 --- a/src/app.js +++ b/src/app.js @@ -140,9 +140,9 @@ app.get("/club/:clubID", [fetchClubsData], (req, res) => { // // ***************************************************** -/************************ - Login Page Routes -*************************/ +// ************************ +// Login Page Routes +// ************************* // Redirect to the /login endpoint 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 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) => { 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 const generateLeagueRoutes = require("./routes/league-pages/generate-league-routes"); generateLeagueRoutes(app); -/************************ - Club Page Routes -*************************/ +// ************************* +// Club Page Routes +// ************************* // Import and call generateLeagueRoutes function const generateClubRoutes = require("./routes/club-pages/generate-club-routes"); generateClubRoutes(app); -/************************ - Favorite Team Database -*************************/ +// ************************* +// Favorite Team Database +// ************************* // Function to add a new row to the FavoriteTeams table // database configuration