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