Route.resource constructor
Route.resource(
- Resource resource, {
- List<
ModularMiddleware> middlewares = const [],
Implementation
factory Route.resource(
Resource resource, {
List<ModularMiddleware> middlewares = const [],
}) {
return Route._(
'/',
children: resource.routes,
middlewares: middlewares,
);
}