add method to resource controller ,route must be before