module Qeweney::RoutingMethods

def on_accept(accept, &block)

def on_accept(accept, &block)
  if accept.is_a?(Regexp)
    return unless headers['accept'] =~ accept
  else
    return unless headers['accept'] == accept
  end
  route_found(&block)
end