module Grape::DSL::RequestResponse::ClassMethods

def formatter(content_type, new_formatter)

Specify a custom formatter for a content-type.
def formatter(content_type, new_formatter)
  namespace_stackable(:formatters, content_type.to_sym => new_formatter)
end