Add configure method to routes for passing in configurations and globals