Allow only document requests in _routes.json

Hello. How can I route only document (HTML) requests to my worker? These should be easily detectable in the include, as they have no extension at all.
1 Reply
TheNinthSky
TheNinthSkyOP2w ago
Answer:
{
"version": 1,
"include": ["/*"],
"exclude": ["/*.*"]
}
{
"version": 1,
"include": ["/*"],
"exclude": ["/*.*"]
}
Want results from more Discord servers?
Add your server