I have a route for an API in an Express app that looks like this:
app.get(\'/:username/:bookmark/\', function(req, res) { // do stuff })
As
If you're at /username/bookmark/ and you link the CSS like this
/username/bookmark/
or this
It will resolve to /username/bookmark/css/main.css. But you want to link in like this
/username/bookmark/css/main.css
The problem is, that the .static-middleware only routes at the base path / instead of all routes you defined.
.static
/