Create login routes

This commit is contained in:
Lucas Patenaude
2024-05-03 04:08:45 -06:00
parent 4886632263
commit 4eb1fe3f6f
3 changed files with 52 additions and 2 deletions

View File

@@ -7,7 +7,6 @@ const app = express();
const handlebars = require("express-handlebars");
const Handlebars = require("handlebars");
const path = require("path");
const pgp = require("pg-promise")(); // To connect to the Postgres DB from the node server
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