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