cowboy: add / to index.html
This commit is contained in:
parent
bc01717da0
commit
f12f2f6b59
1 changed files with 1 additions and 0 deletions
|
@ -34,6 +34,7 @@ defmodule Elstat.Cowboy do
|
||||||
{"/api/current_status", Elstat.API.CurrentStatus, []},
|
{"/api/current_status", Elstat.API.CurrentStatus, []},
|
||||||
{"/api/status", Elstat.API.Status, []},
|
{"/api/status", Elstat.API.Status, []},
|
||||||
{"/[...]", :cowboy_static, {:priv_dir, :elstat, "frontend/build"}},
|
{"/[...]", :cowboy_static, {:priv_dir, :elstat, "frontend/build"}},
|
||||||
|
{"/", :cowboy_static, {:priv_file, :elstat, "frontend/build/index.html"}},
|
||||||
]}
|
]}
|
||||||
])
|
])
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue