cowboy: add / to index.html

This commit is contained in:
Luna Mendes 2018-06-12 20:21:03 -03:00
parent bc01717da0
commit f12f2f6b59
1 changed files with 1 additions and 0 deletions

View File

@ -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