# File lib/neo4jr-social/format_handler.rb, line 3
    def self.registered(app)
      app.send :mime_type, :json, 'application/json'
      app.set :assume_xhr_is_js, true
      app.helpers self
      app.before do
        if request.env['HTTP_ACCEPT'] && request.env['HTTP_ACCEPT'].include?('text/html')
          format :html
        else
          format :json
        end
        charset 'utf-8'
      end      
    end