The API should be injected from the application, so the index.html needs to pass this as a value somehow or set it as a config. E.g Surfnet.OnderwijsData.endpoint = "http://localhost:8000";