A
A
atumbochka2022-03-11 22:59:34
JavaScript
atumbochka, 2022-03-11 22:59:34

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"));
});

But how do you highlight an HTML element?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question