It partly depends on what illness you had and how you’re recovering.
Just a couple of weeks ill I would venture to say I would spend the first week afterwards eating healthy, plenty of protein, because it’s likely your muscle broke down a little, and very moderate exertion like getting back to work if you work, typical household chores, and if you typically exercise do it at half pace by modifying your usual routine, or not at all, if you are still feeling weak from the illness. Get plenty of sleep and stay hydrated during the day.
As you feel your strength come back you can get back to the exercise level you were at prior to your illness.
That’s a total guess though on my part making many assumptions and I’m not a doctor. I’m just going on what I would do after a flu or bout with a cough that lasted a couple of weeks, etc. I don’t know what you had, and I’m not in your body.