RoutesBuilder$Closure extension
Methods
-
on<
T> (FutureOr< T> closure(HttpRequest request), {required String method, required String path}) → void -
Registers a route that responds to the given
method
andpath
with the result of theclosure
.
method
and path
with the
result of the closure
.