defmodule FourOhFourFinderApp.Api.PageController do
  use FourOhFourFinderApp.Web, :controller

  plug :action

  def fetch(conn, params) do
    page_info = FourOhFourFinderApp.PageAnalyzer.analyze(params["url"])
    render conn, page: page_info
  end
end

defmodule FourOhFourFinderApp.Api.PageController do
  use FourOhFourFinderApp.Web, :controller

  def fetch(conn, params) do
    page_info = FourOhFourFinderApp.PageAnalyzer.analyze(params["url"])
    render conn, page: page_info
  end
end

Remove action plug from API Controller
Remove action plug from API Controller

This was cargo coding apparently only applicable to older versions of
Phoenix: newer code does this automatically, so having this in was
causing "duplicate render"-type errors.

wfleming/fourohfourfinder,wfleming/fourohfourfinder,wfleming/fourohfourfinder