Route.get constructor

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

Implementation

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