Skip to content
This repository was archived by the owner on Sep 16, 2025. It is now read-only.

Conversation

@kevinvugts
Copy link

…gins

This adds support for allowing individual content-types to be transformed by the transformer middleware.

Example config:

    enabled: true,
    config: {
      responseTransforms: {
        removeAttributesKey: true,
        removeDataKey: true,
      },
      contentTypeFilter: {
        mode: "allow",
        uids: {
          "api::blog.blog": true,
        },
      },
      plugins: {
        mode: "allow",
        ids: {
          "some-plugin": {
            mode: "allow",
            uids: {
              "plugin::some-plugin.some-content-type": true,
            },
          },
        },
      },
    },
  },```

…gins

This adds support for allowing individual content-types to be transformed by the transformer middleware.

Example config:

```transformer: {
    enabled: true,
    config: {
      responseTransforms: {
        removeAttributesKey: true,
        removeDataKey: true,
      },
      contentTypeFilter: {
        mode: "allow",
        uids: {
          "api::blog.blog": true,
        },
      },
      plugins: {
        mode: "allow",
        ids: {
          "some-plugin": {
            mode: "allow",
            uids: {
              "plugin::some-plugin.some-content-type": true,
            },
          },
        },
      },
    },
  },```
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant