13. Refactoring routes to use resources