In node.js, I want to return a page, that has a relative link to an image path.
In the server I have server.js and images.jpg in the same folder. I ran the server, and when I visit the server link, it returns this html
<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
</head>
<body>
The content of the document......
<img src="images.jpg"/>
</body>
</html>
But the image is not loading. How can I get the correct relative link?
Thanks
localhost:41302/images.jpg.