fix(typedserver): Use smartserve ControllerRegistry for custom routes and remove custom route parsing

This commit is contained in:
2025-12-05 15:46:33 +00:00
parent 05b1f0a395
commit 4a76c8f738
3 changed files with 17 additions and 63 deletions

View File

@@ -1,5 +1,13 @@
# Changelog
## 2025-12-05 - 7.10.1 - fix(typedserver)
Use smartserve ControllerRegistry for custom routes and remove custom route parsing
- addRoute now delegates to plugins.smartserve.ControllerRegistry instead of building its own regex-based matcher
- Backwards compatibility: incoming smartserve IRequestContext is converted to a Request and ctx.params is attached to request.params before invoking the handler
- Removed internal IRegisteredRoute, customRoutes storage, and parseRouteParams helper
- Request handling now uses ControllerRegistry.matchRoute and registered controllers are compiled via ControllerRegistry.compileRoutes()
## 2025-12-05 - 7.10.0 - feat(website-server)
Add configurable ads.txt support to website server