RoutesBuilder$Closure extension

on

Methods

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