tsndr / cloudflare-worker-router

A super lightweight router (1.0K) with middleware support and ZERO dependencies for Cloudflare Workers.
MIT License
227 stars 30 forks source link

Go through global handlers before response 404 #37

Closed sheey11 closed 1 month ago

sheey11 commented 5 months ago

In this way, a custom CORS handler using router.use could be possible.

tsndr commented 1 month ago

Thank you for your contribuiton, unfortunatly it broke the tests, so I implemented a solution.