1
0
mirror of https://github.com/mgerb/classic-wow-forums synced 2026-01-11 01:22:49 +00:00

added client things - finished home page

This commit is contained in:
2018-01-07 00:22:53 -06:00
parent 74df75dd77
commit a9e5b185ee
98 changed files with 7303 additions and 7 deletions

View File

@@ -5,8 +5,13 @@ defmodule MyAppWeb.PageController do
@spec index(map, map) :: any
def index(conn, _params) do
file = Cachex.get(:myapp, "index.html")
|> get_file
# cache index.html if prod
file = case Mix.env do
:dev -> File.read!("./priv/static/index.html")
_ ->
file = Cachex.get(:myapp, "index.html")
|> get_file
end
conn
|> html(file)