Login routes file fixed to make externally linked file work when called as a function in app.js

This commit is contained in:
2024-05-28 23:17:42 -05:00
parent a3ec0ca01d
commit 322a7c6f20

View File

@@ -1,4 +1,11 @@
const express = require("express");
const db = require("../../database/db"); // Import the db modulei
const handlebars = require("express-handlebars");
const Handlebars = require("handlebars");
const path = require("path");
const bodyParser = require("body-parser");
const session = require("express-session"); // To set the session object. To store or access session data, use the `req.session`, which is (generally) serialized as JSON by the store.
const bcrypt = require("bcryptjs"); // To hash passwords
const router = express.Router();
// Render login page for /login route