made API paths configurable from the environment