Which of the following method is preferable to render the static assets. Consider that only helpPage.html is the only file exist in the public
directory
Method 1:
app.use(express.static(__dirname + '/public'))
Method2:
app.use((req, res) => {
res.render(__dirname + '/public/helpPage.html');
})