Answer the question
In order to leave comments, you need to log in
How to correctly specify the paths for files in localhost?
I launch an express server from the node, it returns on request (routes on port 3000), while the paths to all pictures and other files turn out to be not working.
PySy: relative addresses are indicated if you just open index.html, everything works. I tried to specify the absolute address
localhost:3000/img/chat.png does not work either (in the folder with index.html there is an img folder in it all the pictures)
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