diff options
| author | Alex <zuedev@gmail.com> | 2025-03-23 11:40:02 +0000 |
|---|---|---|
| committer | Alex <zuedev@gmail.com> | 2025-03-23 11:40:02 +0000 |
| commit | ee3604bcf78d6a04dfed7525d5dd768bc99b15db (patch) | |
| tree | 8fd0f152f3becd04d5402f9bd2066235d8df1972 /source/data/talent96.js | |
| parent | 64a611d0cac30ee0c79c1c8724c1996da114d8bf (diff) | |
| download | zue.dev-ee3604bcf78d6a04dfed7525d5dd768bc99b15db.tar zue.dev-ee3604bcf78d6a04dfed7525d5dd768bc99b15db.tar.gz zue.dev-ee3604bcf78d6a04dfed7525d5dd768bc99b15db.tar.bz2 zue.dev-ee3604bcf78d6a04dfed7525d5dd768bc99b15db.tar.xz zue.dev-ee3604bcf78d6a04dfed7525d5dd768bc99b15db.zip | |
feat(router): Add support for dynamic route parameters
- 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`.
Diffstat (limited to 'source/data/talent96.js')
0 files changed, 0 insertions, 0 deletions
