What to do when baby won’t eat?

Soooo like what am I suppose to do when my 12 month old won’t eat food food but I’m only suppose to give him 24 ounces of milk a day? Is this okay? He has been such a good eater for the past 6 months or so but the past few days it’s been a struggle getting him to eat much, even his favorite foods. Do I just let him be? Or do I keep making food after food at meal times trying to get him to eat something?