diff options
| author | Alex <zuedev@gmail.com> | 2025-03-23 11:28:19 +0000 |
|---|---|---|
| committer | Alex <zuedev@gmail.com> | 2025-03-23 11:28:19 +0000 |
| commit | 64a611d0cac30ee0c79c1c8724c1996da114d8bf (patch) | |
| tree | 19a2233edd82238811919652a05a4da3926a4c60 /wrangler.json | |
| parent | d817a4dfe59cdf778454396a3f938ee4af95981c (diff) | |
| download | zue.dev-64a611d0cac30ee0c79c1c8724c1996da114d8bf.tar zue.dev-64a611d0cac30ee0c79c1c8724c1996da114d8bf.tar.gz zue.dev-64a611d0cac30ee0c79c1c8724c1996da114d8bf.tar.bz2 zue.dev-64a611d0cac30ee0c79c1c8724c1996da114d8bf.tar.xz zue.dev-64a611d0cac30ee0c79c1c8724c1996da114d8bf.zip | |
feat(router): improve Router class with enhanced error handling and path normalization
- Added error handling for unexpected exceptions in the `route` method, returning a 500 response with a descriptive error message.
- Normalized paths in the `route` method to ensure consistent matching by removing trailing slashes.
- Improved the 404 response to include the unmatched path for better debugging.
- Enhanced code comments for clarity and maintainability.
Diffstat (limited to 'wrangler.json')
0 files changed, 0 insertions, 0 deletions
