PredefinedRoutesFeature - turn off service list, continue to use /api

when I hit my service layer with /api only, a json list of services is displayed. I want to disable this list of services only, but continue to have my services under /api. I tried removing metadatafeature and uifeature and that didn’t do it.

You should be able to disable it with:

services.ConfigurePlugin<PredefinedRoutesFeature>(
    feature => feature.ApiIndex = null);