Specific route request timeout

System Information
  • Strapi Version: 4+

Hello,

I have a custom API defined in my Strapi instance (custom route, controller, service). This is a public API. I would like, only for those route, to restrict the request timeout to 2s.

I only found how to configure a global request timeout for strapi, but not for individual endpoints.

Is there any non-documented way ?

Thanks