diff options
author | Patrick Maia <patrickjourdanmaia@gmail.com> | 2014-08-07 14:23:04 -0300 |
---|---|---|
committer | Patrick Maia <patrickjourdanmaia@gmail.com> | 2014-08-07 14:24:06 -0300 |
commit | 118e0428b906ed02f0189ffb23d7b67d1d8c4a1d (patch) | |
tree | 0be42d1ea96950da2bd25ed28ae35b5156b44793 | |
parent | a23bec5302589ccfc7ea4578c28641ad18b62170 (diff) |
removes route that is not needed now that service serves the ui
-rw-r--r-- | fake-service/lib/pixelated_service/server.rb | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/fake-service/lib/pixelated_service/server.rb b/fake-service/lib/pixelated_service/server.rb index acf247b1..d4b9e354 100644 --- a/fake-service/lib/pixelated_service/server.rb +++ b/fake-service/lib/pixelated_service/server.rb @@ -63,24 +63,6 @@ module PixelatedService post '/control/delete_mails' do json control_delete_mails end post '/control/mailset/:name/load' do |name| json control_mailset_load(name) end - - # pass all other requests to asset server - get '/*' do - url = "http://localhost:9000/#{params['splat'][0]}" - - resp = Net::HTTP.get_response(URI.parse(url)) - if resp.is_a?(Net::HTTPSuccess) - res = resp.body.to_s.gsub(/(href|src)=("|')\//, '\1=\2' + url + '/') - content_type resp.content_type - status resp.code - res - else - status resp.code - resp.message - end - end - - include PixelatedService::Fake end end |