controller/examples: Refactor createRoute

Signed-off-by: Jesse Stuart <jesse@jessestuart.ca>