how to access data from route configuration