Hmmm... I didn't think of cfg.ListOpt. Thanks for pointing this out. However, I'm tempted to keep the routes config in a separate JSON file. Rationale: +1 for extensibility, and +1 for separation of concerns.

Thoughts?