Worker on existing website

I have an existing website at www.example.com hosted outside cloudflare and I need a worker to respond to 2 endpoints at www.example.com/foo and /bar

Is that possible and where might I find docs specific to it?
Was this page helpful?