Obviously the typical example of adding routes to express follows something like the following:
var express = require(\'express\');
var app = express();
app.get
According to TJ (author of Express), it’s okay to add routes at runtime.
The main gotcha is going to be that routes are evaluated in the order they were added, so routes added at runtime will have a lower precedence than routes added earlier. This may or may not matter, depending on your API design.