The second option seems to work. But I need to add them programmatically for each customer willing t
The second option seems to work. But I need to add them programmatically for each customer willing to have a custom hostname. I found the API doc to add a worker route https://developers.cloudflare.com/api/operations/worker-routes-create-route. That should work. But I was wondering if it is the right solution.
Interact with Cloudflare's products and services via the Cloudflare API




