Changes route to resource