I AM EXPLAINING THIS ANSWER TO YOU IN LAYMAN's WORD.
Endogenously means the spores are produced Inside the fruiting Body. i.e they are produced inside ascus(ascospores)
Exogenously means spores are produced outside the fruiting Body. i.e they are produced outside (basidiospores) which are formed on basidium
Hope that helps. if it does mark me the best.