Why Jesus accepted Thomas' worship in John 20:28–29
When Thomas called Jesus “My Lord and my God,” Jesus accepted this worship because it correctly identified him as the divine Son of God.
John 1:1–14: The Word Was God
John opens his Gospel by placing the Word with God and calling the Word God, then says that same Word became flesh and lived among us. The passage answers the question about Jesus being God before it ever names him.