use resources in routes