aboutsummaryrefslogtreecommitdiff
path: root/source/index.js
diff options
context:
space:
mode:
authorAlex <zuedev@gmail.com>2025-03-23 11:28:19 +0000
committerAlex <zuedev@gmail.com>2025-03-23 11:28:19 +0000
commit64a611d0cac30ee0c79c1c8724c1996da114d8bf (patch)
tree19a2233edd82238811919652a05a4da3926a4c60 /source/index.js
parentd817a4dfe59cdf778454396a3f938ee4af95981c (diff)
downloadzue.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 'source/index.js')
0 files changed, 0 insertions, 0 deletions