Route.delete constructor

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

Implementation

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