Comment clean-up done to app.js
This commit is contained in:
36
src/app.js
36
src/app.js
@@ -140,9 +140,9 @@ app.get("/club/:clubID", [fetchClubsData], (req, res) => {
|
||||
// <!-- Section 5 : API Routes -->
|
||||
// *****************************************************
|
||||
|
||||
/************************
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user