If a player got injury then they usually take rest and get treatment. If the injury is serious then they would like to get surgery which help the complete recovery. So do the same thing as every sports person do.
Without any knowledge of the extent of your injury or its cause, it would be wise for you to see a doctor. You may need little care other than rest and elevation of the leg, but to be sure, have an examination.