2017-12-08 08:58:14 +00:00
|
|
|
defmodule EventosWeb.PageController do
|
2018-01-14 16:56:50 +00:00
|
|
|
@moduledoc """
|
|
|
|
Controller to load our webapp
|
|
|
|
"""
|
2017-12-08 08:58:14 +00:00
|
|
|
use EventosWeb, :controller
|
2018-01-13 22:33:03 +00:00
|
|
|
|
2018-07-27 08:45:35 +00:00
|
|
|
plug(:put_layout, false)
|
2017-12-08 08:58:14 +00:00
|
|
|
|
|
|
|
def index(conn, _params) do
|
2018-10-10 12:57:35 +00:00
|
|
|
conn
|
|
|
|
|> put_resp_content_type("text/html")
|
|
|
|
|> send_file(200, "priv/static/index.html")
|
2017-12-08 08:58:14 +00:00
|
|
|
end
|
|
|
|
end
|