updated directories and updated docker config
This commit is contained in:
@@ -10,7 +10,7 @@ import {
|
||||
updateUser,
|
||||
deleteUser,
|
||||
getAllUsers,
|
||||
} from "./database.js";
|
||||
} from "../shared/database.js";
|
||||
|
||||
// Middleware to parse URL-encoded bodies (form submissions)
|
||||
app.use(express.urlencoded({ extended: true }));
|
||||
@@ -60,7 +60,6 @@ function allUsers() {
|
||||
|
||||
// Route to handle user login
|
||||
app.post("/login", (req, res) => {
|
||||
|
||||
allUsers();
|
||||
|
||||
// Attempt to log in the user with provided credentials
|
||||
|
Reference in New Issue
Block a user