The configuration needs to pass itself to new endpoints as the config.