Inject resource into router

During resource generator
Merge pull request #57 from dockyard/bc-inject-resource-into-router

Inject resource into router