debianize-mobilizon/lib/eventos_web/controllers/page_controller.ex
Thomas Citharel 3b48ac957f Put js build through phoenix
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-10-10 14:57:35 +02:00

15 lines
296 B
Elixir

defmodule EventosWeb.PageController do
@moduledoc """
Controller to load our webapp
"""
use EventosWeb, :controller
plug(:put_layout, false)
def index(conn, _params) do
conn
|> put_resp_content_type("text/html")
|> send_file(200, "priv/static/index.html")
end
end