| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | refactor(router): remove unused test route handler | Alex | 2025-03-23 | 1 | -8/+0 |
| | | |||||
| * | feat(router): Add support for dynamic route parameters | Alex | 2025-03-23 | 2 | -4/+30 |
| | | | | | | | | | | - Enhanced the `add` method to handle parameterized routes (e.g., `/test/:name`) by converting `:param` into regex groups. - Updated the `route` method to extract and store route parameters in the `parameters` property. - Added logic to match parameterized routes and pass extracted parameters to handlers. - Included a fallback for 404 responses when no route matches. This update allows handlers to access dynamic route parameters via `router.parameters`. | ||||
| * | feat(router): improve Router class with enhanced error handling and path ↵ | Alex | 2025-03-23 | 1 | -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 handling | Alex | 2025-03-23 | 1 | -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 handling | Alex | 2025-03-23 | 2 | -79/+129 |
| | | |||||
| * | docs: add JSDoc comment for fetch event handler | Alex | 2025-03-23 | 1 | -0/+10 |
| | | |||||
| * | docs: add JSDoc comment for Respond helper function | Alex Pooley | 2025-03-22 | 1 | -0/+6 |
| | | |||||
| * | add `96/twitch/streaming` endpoint | Alex Pooley | 2025-03-21 | 2 | -0/+50 |
| | | |||||
| * | better response handling + cors | Alex Pooley | 2025-03-20 | 1 | -4/+13 |
| | | |||||
| * | move back to vanilla | Alex Pooley | 2025-03-20 | 6 | -214/+677 |
| | | |||||
| * | feat: enhance middleware by adding pretty JSON responses and request ID | Alex Pooley | 2025-03-19 | 1 | -1/+9 |
| | | |||||
| * | feat: implement service status validation and refactor status route | Alex Pooley | 2025-03-19 | 2 | -30/+31 |
| | | |||||
| * | chore: add assets directory to wrangler.json and create hello.txt in ↵ | Alex Pooley | 2025-03-19 | 2 | -0/+4 |
| | | | | | public/static | ||||
| * | chore: update compatibility_date and clean up wrangler.json | Alex Pooley | 2025-03-19 | 1 | -29/+1 |
| | | |||||
| * | refactor: rename context variable for clarity in route handlers | Alex Pooley | 2025-03-19 | 1 | -8/+8 |
| | | |||||
| * | remove ts | Alex Pooley | 2025-03-19 | 5 | -22/+3 |
| | | |||||
| * | Update wrangler.json | Alex | 2025-02-22 | 1 | -5/+5 |
| | | |||||
| * | initial | Alex Pooley | 2025-02-22 | 7 | -0/+1268 |
