I have a html file in a folder called views, and i run my project using node.
node index.js
which makes a server using total.js. The server starts running on http://127.0.0.1:8000/
. This all works fine, except when I try to include a script in the html:
<script type="text/javascript" src="/path/to/js.js">
I get the following message in the console:
GET http://127.0.0.1:8000/path/to/js.js" 404 not found