How to Create a Custom API Endpoint in Strapi

I am getting the output in results, pagination format. Now I want to transform this to the default data, attributes format since the output of custom API is different from others.

this.transformResponse is not working in strapi new version.

Looking forward to the solution. I am stuck with this

1 Like