diff --git a/lib/cowboy.ex b/lib/cowboy.ex index 9049455..3f85c80 100644 --- a/lib/cowboy.ex +++ b/lib/cowboy.ex @@ -34,6 +34,7 @@ defmodule Elstat.Cowboy do {"/api/current_status", Elstat.API.CurrentStatus, []}, {"/api/status", Elstat.API.Status, []}, {"/[...]", :cowboy_static, {:priv_dir, :elstat, "frontend/build"}}, + {"/", :cowboy_static, {:priv_file, :elstat, "frontend/build/index.html"}}, ]} ]) end