My code goes like this:
app.get("/:pageName",function(req,res){
const listName=req.params.pageName;
console.log(listName)
const list = new List({name:listName,items:defaultItems});
list.save();
});
If I only typed in the URL bar in the browser "http://localhost:3000/" does the app execute the previous code or not?
If it does, how can I tell it not to?