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
Here's a concrete example, take the typical use-case of serving files in ./public using the express.static() middleware:
app.use(express.static(__dirname + '/public'));