addRouting method
Adds a routing function to the server.
The router
function returns a Future containing a list of WebRoute based on the provided WebRequest.
This allows for dynamic routing based on the request.
Returns the WaServer instance to allow method chaining.
Implementation
WaServer addRouting(Future<List<WebRoute>> Function(WebRequest rq) router) {
_webRoutes.add(router);
return this;
}