Examples of reading in a POST request body of type JSON, form-data, and blobs before it reaches the origin server.
Although this router works fine I made a new one, based on experiences using it in production with Cloudflare Workers.
simple cloudflare worker recipe to send logs into logdna
Here's a simple CloudFlare Worker with a built-in router that allows you to separate your worker logic into different functions and/or "controllers" so you can achieve a clean separation of concerns while working within the 1 script limit for non-Enterprise plans.