defmodule PhoenixFrontendDeploys.FrontendController do
  use PhoenixFrontendDeploys.Web, :controller

  alias PhoenixFrontendDeploys.IndexAgent

  def index(conn, _params) do
    conn
    |> send_file(200, get_index)
  end


  defp get_index, do: IndexAgent.get
end

defmodule PhoenixFrontendDeploys.FrontendController do
  use Phoenix.Controller

  alias PhoenixFrontendDeploys.IndexAgent

  def index(conn, _params) do
    conn
    |> send_file(200, get_index)
  end


  defp get_index, do: IndexAgent.get
end

Use Phoenix.Controller rather the custom
Use Phoenix.Controller rather the custom

mfeckie/phoenix_frontend_deploys,mfeckie/phoenix_frontend_deploys