route method

Route route(
  1. String match, {
  2. List<OidcOptions>? security,
  3. List<HttpHandler> middlewares = const [],
})

Create a route that matches on a specific path with optional middlewares and security.

Implementation

Route route(String match,
    {List<OidcOptions>? security, List<HttpHandler> middlewares = const []}) {
  return Route(this, match, security: security, middlewares: middlewares);
}