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