mirror of
https://github.com/moparisthebest/mailcatcher
synced 2024-12-21 23:08:54 -05:00
Remove unused fractal endpoint
This commit is contained in:
parent
17054f80ad
commit
ba4ca7f8d6
@ -156,19 +156,6 @@ module MailCatcher
|
|||||||
end
|
end
|
||||||
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
|
delete "/messages/:id" do
|
||||||
id = params[:id].to_i
|
id = params[:id].to_i
|
||||||
if message = Mail.message(id)
|
if message = Mail.message(id)
|
||||||
|
Loading…
Reference in New Issue
Block a user