Sore knees and ankles?

I was up tossing and turning all night because I have aches in my ankles, knees and hips. Is there anything I can do? I'm 35wks