Worker routes vs costum domain


i’m creating a worker with a basic proxy but i can only seam to make it work if in the dns zone the domain points to the worker. If i use a route for the domian example/* its not passing by the worker. And of course this hostname is proxied and managed in cloudflare. I look at the logs and nothing happens only by using a record that as the worker as value.