Put js build through phoenix

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2018-10-10 14:57:35 +02:00
parent 8d5f4d7a53
commit 3b48ac957f
18 changed files with 1637 additions and 1539 deletions

View File

@@ -7,6 +7,8 @@ defmodule EventosWeb.PageController do
plug(:put_layout, false)
def index(conn, _params) do
render(conn, "index.html")
conn
|> put_resp_content_type("text/html")
|> send_file(200, "priv/static/index.html")
end
end