How to use
If you want to start restricting certain routes, you can import thedefaultRateLimit
middleware from the plugin and then use it as follows:
src/api/middlewares.ts
src/api/middlewares.ts
In this example, the rate limiting mechanism will allow 10 requests per minute per IP address.To learn more about advanced customization and configuration, check out the Customization section.