Register methods
Router provides get, post, put, patch, and delete. Each accepts a path, a Future<dynamic> Function(HttpRequest) handler, and optional route middleware.
lib/src/http/routes/api.dart
Group related routes
Groups combine nested prefixes and prepend their middleware to route-specific middleware.lib/src/http/routes/api.dart
Use typed parameters
Declare parameters as{name:type}. Supported types are int, double, uuid, and string. Retrieve the coerced value through RouteParams.get<T>().
lib/src/http/routes/web.dart
The router tries exact static routes before dynamic routes. It normalizes trailing slashes and accepts
_method from the query string as a method override.