Rename router to resource.