Middleware for Response Format

System Information
  • Strapi Version: 3.3.2
  • Operating System: Windows
  • Database: MongoDB
  • Node Version: 12.18.3
  • NPM Version: 12.18.3
  • Yarn Version:

Hi,
How do I change the response format for all the controllers by default?
Looking at the following format
{
success:true/false,
message: “”,
data: {}/[]
}

We don’t have a core-api controller extensions yet though we are looking into it, in your case you will have to override all of the controllers or fork the strapi package and customize the core-api here: strapi/controller.js at master · strapi/strapi · GitHub