add pages_resources when generating routes