Read endpoints from config