Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
TatianaS7 committed Jan 7, 2024
1 parent a38973c commit 4f2f68f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ app.use(express.json()); // For parsing application/json
app.use(express.urlencoded({ extended: true })); // For parsing application/x-www-form-urlencoded
app.use((err, req, res, next) => {
console.error(err.stack);
res.status(500).json({ error: "Internal Server Error" });
res.status(500).json({ error: "Internal Server Error", message: err.message });
});

app.get("/", (req, res) => {
// Redirect to the login.html page
res.redirect("/public/login.html");
res.redirect("/login.html");
});

//Get Record from Databae
Expand Down

0 comments on commit 4f2f68f

Please sign in to comment.