I've build a new app with an express-generator so i've got public dir with javascripts i guess for a client side. But i can't get access to this files. My app.js has for an absolute path
 app.use(express.static(path.join(__dirname, 'public')));
But when i put on my index.html page on the bottom of the body like this
 <script type="text/javascript" src="/javascripts/main.js">
i've got an error inside a console with a 404 regarding to this script.
public/javascripts/main.jsexists?index.htmlfrom the running server (and not directly through the file system).