I have been working on the solution to the following differential equation:

$$y' + y = \frac{2x}{e^x(1+ye^x)}$$

I am not sure how to solve this type of problem because of the y on the right side... I tried to multiply both sides by the bottom. From there I tried to find the solution as though it were:

$$(1+ye^x)y' + y(1+ye^x) = 0$$

However, I thought that this method of solution required the $y'$ to be isolated. If that is not the case, then I am solving it fine. If that is the case, then what am I meant to be doing?