title: Routing in node: How can I mange the access to my public folder?
body: <p>I'm sorry if I'm a little confusing in my explanation.</p>
  
  <p>I Get this error on chrome when trying to reach my endpoint movies/add</p>
  
  <p>GET <a href="http://localhost:3002/movies/css/style.css" rel="nofollow noreferrer">http://localhost:3002/movies/css/style.css</a> net::ERR_ABORTED 404 (Not Found)
  add:93 GET <a href="http://localhost:3002/movies/images/happy.svg" rel="nofollow noreferrer">http://localhost:3002/movies/images/happy.svg</a> 404 (Not Found)
  2add:112 GET <a href="http://localhost:3002/movies/js/main.js" rel="nofollow noreferrer">http://localhost:3002/movies/js/main.js</a> net::ERR_ABORTED 404 (Not Found)</p>
  
  <p>I have my files structured in a common way, and I have my routing using different paths, like this:</p>
  
  <pre><code>const iFeltRoutes = require('../app/routes/')
  const movieRoutes = require('../app/routes/movies/') 
  app.use('/movies', movieRoutes)
  app.use('/', iFeltRoutes)
  
  </code></pre>
  
  <p>So when I access / and all the routes in iFeltRoutes, public folder is accessed the right way, but using the movieRoutes, gives me this error.</p>
  
  <p>How can I define the right path to public folder, whatever the route I use?</p>