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