title: Difficulty with absolute and relative paths in Express
body: <p>I have a route for an API in an Express app that looks like this:</p>
  
  <pre><code>app.get('/:username/:bookmark/', function(req, res) {
  
    // do stuff
  
  })
  </code></pre>
  
  <p>As expected, this route resolves to:</p>
  
  <pre><code>GET /username/bookmark/
  </code></pre>
  
  <p>However, I would like to use relative URLs for my static resources. For example, I would like the route to my <code>main.css</code> to resolve to:</p>
  
  <pre><code>GET /css/main.css
  </code></pre>
  
  <p>Instead, it currently resolve to:</p>
  
  <pre><code>GET /username/bookmark/css/main.css
  </code></pre>
  
  <p>How can I get my app to resolve static content to <code>/css/main.css</code> and remove the leading components of the API from the URL?</p>