Modified the endpoint that gets products by user id.