Why do we have to do this for every page in node? For example if someone wants to visit /about we have to do this if someone want to visit /contact we have to do this. Why can't we just create simple HTML pages like about.html and contact.html and serve them when someone visit pages?
app.get("/", (req,res) => {
res.send("Hello World");
});
app.get("/about", (req, res) => {
res.send("You are on about page");
});