Allow all kind of request for specific routes

How can i tell to Cloudflare to allow all kind of request only for specific routes ?

For example i want to allow my api routes which has this url

https://api.example.com

https://*.example.com