code: def route(*args, response_formatter=jsonify, **kwargs):
      
  
      def decorator(func):
          @app.route(*args, **kwargs)
          @functools.wraps(func)
          def wrapped_view(*a, **kw):
              annotations = getattr(func, "__annotations__", {})
              reqargs = {
                  name: value
                  for name, value in annotations.items()
                  if isinstance(value, fields.Field) and name != "return"
              }
              response_schema = annotations.get("return")
              parsed = parser.parse(reqargs, request)
              kw.update(parsed)
              response_data = func(*a, **kw)
              if response_schema:
                  return response_formatter(response_schema.dump(response_data).data)
              else:
                  return response_formatter(func(*a, **kw))
  
          return wrapped_view
  
      return decorator
docs: Combines `Flask.route` and webargs parsing. Allows arguments to be specified
      as function annotations. An output schema can optionally be specified by a
      return annotation.