According to the API reference, the first param always contain request req, then response res.
So change first param res to req:
app.get("https://stackoverflow.com/", function(req, res) {
res.send("Rendering file")
}
It should fix it.
According to the API reference, the first param always contain request req, then response res.
So change first param res to req:
app.get("https://stackoverflow.com/", function(req, res) {
res.send("Rendering file")
}
It should fix it.