cowboy: change order of mapping to make sure

This commit is contained in:
Luna Mendes 2018-06-12 20:21:21 -03:00
parent f12f2f6b59
commit 3b84381b90

View file

@ -33,8 +33,8 @@ defmodule Elstat.Cowboy do
{"/hewwo", Elstat.Cowboy.DefaultHandler, []},
{"/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"}},
{"/[...]", :cowboy_static, {:priv_dir, :elstat, "frontend/build"}},
]}
])
end