remove surf proxy before check

This commit is contained in:
Kyle Drake 2015-03-28 22:58:03 -07:00
parent eb316031a2
commit f23b5c4871

4
app.rb
View file

@ -24,10 +24,6 @@ end
set :protection, :frame_options => "ALLOW-FROM #{$config['surf_iframe_source']}"
before do
if request.host.match /\w+\.#{Addressable::URI.parse($config['surf_proxy_uri']).host}/i
surf_proxy
end
if request.path.match /^\/api\//i
@api = true
content_type :json