[#71587328] Fixing the API endpoint URLs for test/prod environments.

Requires: https://github.com/AllPlayers/Puppet/pull/673