updated routing use resources instead of resource