lib/soulmate/server.rb in soulmate-0.0.3 vs lib/soulmate/server.rb in soulmate-0.0.4
- old
+ new
@@ -1,11 +1,14 @@
require 'sinatra/base'
require 'soulmate'
+require 'rack/contrib'
module Soulmate
class Server < Sinatra::Base
include Helpers
+
+ use Rack::JSONP
before do
content_type 'application/json', :charset => 'utf-8'
end