Inject resource into router

During resource generator