patch static method

Route patch(
  1. String route,
  2. dynamic controller, {
  3. Object? body,
})

patch route

Route.patch('path', controller);

Implementation

static Route patch(String route, dynamic controller, {Object? body}) {
  return Route()._addRoute(
    HttpRequestMethod.PATCH,
    Route()._prefix + route,
    controller,
    body: body,
  );
}