Closed
Labels
Description
Description
The current server implementation uses manual path and HTTP verb dispatch. This should be refactored to use the Router class from the relic package for better maintainability and extensibility.
Affected Files
packages/serverpod/lib/src/server/server.dart:190
Context
// TODO: Use Router instead of manual dispatch on path and verb
if (uri.path == '/') {
// Perform health checks
...
}Suggested Implementation
- Use the
Routerclass from therelicpackage (already a dependency) - Implement route matching and dispatching logic using relic's Router API
- Migrate existing manual dispatch code to use Router
- Add support for route parameters and pattern matching as provided by relic
- Maintain backward compatibility during transition
- Add tests for route matching edge cases
Impact
Code maintainability, extensibility for adding new routes, better error handling
Related
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone 🚀
Activity
feat: Update all TODOs to reference newly created GitHub issues
feat: Update all TODOs to reference newly created GitHub issues