Strapi Custom API in Plugin

System Information
  • Strapi Version:
  • Operating System:
  • Database:
  • Node Version:
  • NPM Version:
  • Yarn Version:

I develop a plugin and have a custom api but it not contain media field in response

media fields are relations so you need to populate them

I found the way to populate file but when i did like that, only one component in response, any way to collect all component of dynamiczone?