Route Matching - Request Document Only

I’m looking to do edge side includes and I’m trying to figure out if it’s possible to match only the HTML document itself and not the images, css, & javascript with routes. I did look here: Routes · Cloudflare Workers docs but didn’t see a way to do it based on those docs. FWIW I’m essentially looking to grab a bunch of static HTML content and merge in user specific data via a separate API but it doesn’t make sense to execute workers for all the assets on the site.