post method

Future<void> post(
  1. String match,
  2. HttpHandler handler, {
  3. List<OidcOptions>? security,
  4. List<HttpHandler> middlewares = const [],
})

A POST request handler that matches a specific route.

Implementation

Future<void> post(String match, HttpHandler handler,
    {List<OidcOptions>? security,
    List<HttpHandler> middlewares = const []}) async {
  await route(match, security: security, middlewares: middlewares)
      .post(handler);
}