diff --git a/lib/cowboy.ex b/lib/cowboy.ex index b9855df..38d8b8e 100644 --- a/lib/cowboy.ex +++ b/lib/cowboy.ex @@ -30,7 +30,7 @@ defmodule Elstat.Cowboy do def build_dispatch_config do :cowboy_router.compile([ {:_, [ - {"/", :cowboy_static, {:priv_file, :my_app, "static/index.html"}}, + {"/", :cowboy_static, {:file, "static/index.html"}}, {"/hewwo", Elstat.Cowboy.DefaultHandler, []}, {"/api/current_status", Elstat.API.Status, []}, diff --git a/static/index.html b/static/index.html new file mode 100644 index 0000000..c11b20e --- /dev/null +++ b/static/index.html @@ -0,0 +1,72 @@ + + + + + + + + + + +