Added an example on how to write a resolve in the routes