Answer the question
In order to leave comments, you need to log in
How to bind "a" tag to HTML element using express.js?
If you bind the "a" tag to an HTML element as usual (for example, to the class container ), then express will output the following: Cannot GET /.container
If there was an image, I would do this:
app.get("/whatsapp.png", (req, res) => {
res.sendFile(path.join(__dirname, "images", "whatsapp.png"));
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question