refactored the user and product resource path