aboutsummaryrefslogtreecommitdiff
path: root/source
Commit message (Collapse)AuthorAgeFilesLines
* feat(router): improve Router class with enhanced error handling and path ↵Alex2025-03-231-20/+30
| | | | | | | | | 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.
* Refactor `route` function for improved performance and error handlingAlex2025-03-231-7/+19
| | | | | | | | - Normalized URL path by removing trailing slashes for consistent matching. - Added proper 404 response when a route is not found, including the requested path in the error message. - Enhanced error handling to return a 500 Internal Server Error for unexpected exceptions. - Prepared for potential optimization by suggesting the use of a `Map` for faster route lookups. - Improved code readability and maintainability.
* refactor: implement Router class for improved request handlingAlex2025-03-232-79/+129
|
* docs: add JSDoc comment for fetch event handlerAlex2025-03-231-0/+10
|
* docs: add JSDoc comment for Respond helper functionAlex Pooley2025-03-221-0/+6
|
* add `96/twitch/streaming` endpointAlex Pooley2025-03-212-0/+50
|
* better response handling + corsAlex Pooley2025-03-201-4/+13
|
* move back to vanillaAlex Pooley2025-03-202-69/+51
|
* feat: enhance middleware by adding pretty JSON responses and request IDAlex Pooley2025-03-191-1/+9
|
* feat: implement service status validation and refactor status routeAlex Pooley2025-03-192-30/+31
|
* refactor: rename context variable for clarity in route handlersAlex Pooley2025-03-191-8/+8
|
* remove tsAlex Pooley2025-03-191-0/+60