Route.post constructor

Route.post(
  1. String name,
  2. Function handler, {
  3. List<Middleware> middlewares = const [],
})

Implementation

factory Route.post(
  String name,
  Function handler, {
  List<Middleware> middlewares = const [],
}) {
  return Route._(
    handler: handler,
    name: name,
    schema: 'POST',
    middlewares: middlewares,
  );
}