Remove unused fractal endpoint

This commit is contained in:
Samuel Cochran 2016-04-23 15:45:06 +08:00
parent 17054f80ad
commit ba4ca7f8d6
1 changed files with 0 additions and 13 deletions

View File

@ -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)