move api endpoints from config object to tm.apiConfig