fixed environment var name mistake

change from endoing to endpoint