2018-10-11 15:37:39 +00:00
|
|
|
defmodule MobilizonWeb.PageController do
|
2018-01-14 16:56:50 +00:00
|
|
|
@moduledoc """
|
|
|
|
Controller to load our webapp
|
|
|
|
"""
|
2018-10-11 15:37:39 +00:00
|
|
|
use MobilizonWeb, :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
|
2018-10-11 15:47:02 +00:00
|
|
|
|> put_resp_content_type("text/html")
|
|
|
|
|> send_file(200, "priv/static/index.html")
|
2017-12-08 08:58:14 +00:00
|
|
|
end
|
|
|
|
end
|