strapi-community / strapi-plugin-transformer

A plugin for Strapi Headless CMS that provides the ability to transform the API request or response.
https://market.strapi.io/plugins/strapi-plugin-transformer
MIT License
140 stars 22 forks source link

refactor(middleware): register transforms per route via route middleware #59

Closed ComfortablyCoding closed 1 year ago

ComfortablyCoding commented 1 year ago

This PR refactors the codebase to register the transform middleware on a per route basis instead of as a server middleware.

In doing so it provides us with the following benefits: