From ba4ca7f8d6fc306a5cf9f68cb648901637670709 Mon Sep 17 00:00:00 2001 From: Samuel Cochran Date: Sat, 23 Apr 2016 15:45:06 +0800 Subject: [PATCH] Remove unused fractal endpoint --- lib/mail_catcher/web/application.rb | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lib/mail_catcher/web/application.rb b/lib/mail_catcher/web/application.rb index 972571b..c8dcf58 100644 --- a/lib/mail_catcher/web/application.rb +++ b/lib/mail_catcher/web/application.rb @@ -156,19 +156,6 @@ module MailCatcher end end - get "/messages/:id/analysis.?:format?" do - id = params[:id].to_i - if part = Mail.message_part_html(id) - # TODO: Server-side cache? Make the browser cache based on message create time? Hmm. - uri = URI.parse("http://api.getfractal.com/api/v2/validate#{"/format/#{params[:format]}" if params[:format].present?}") - response = Net::HTTP.post_form(uri, :api_key => "5c463877265251386f516f7428", :html => part["body"]) - content_type ".#{params[:format]}" if params[:format].present? - body response.body - else - not_found - end - end - delete "/messages/:id" do id = params[:id].to_i if message = Mail.message(id)