Skip to content

Commit

Permalink
artificial error
Browse files Browse the repository at this point in the history
  • Loading branch information
lxvdnl committed Apr 24, 2024
1 parent 7593650 commit 8f1c07c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const storage = multer.diskStorage({
});
const upload = multer({ storage: storage });

app.get("/", function (req, res) {
app.get(/", function (req, res) {
const allTierListsInfo = getSubfoldersNameAndImgNames("./public/imgSets");
res.render("homePage.html", {
allTierListsInfo: allTierListsInfo,
Expand Down Expand Up @@ -78,7 +78,7 @@ app.post("/tierListCreated", upload.array("imgSet"), function (req, res) {

app.listen(port, hostName, (err) => {
if (err) {
console.error('Error when starting the server: ', err);
console.error("Error when starting the server: ", err);
process.exit(1);
}
console.log(`The server is running on http://${hostName}:${port}`);
Expand Down

0 comments on commit 8f1c07c

Please sign in to comment.