From 3b84381b90f66ccf34be247a23b0028db17605cb Mon Sep 17 00:00:00 2001 From: Luna Mendes Date: Tue, 12 Jun 2018 20:21:21 -0300 Subject: [PATCH] cowboy: change order of mapping to make sure --- lib/cowboy.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cowboy.ex b/lib/cowboy.ex index 3f85c80..fc54025 100644 --- a/lib/cowboy.ex +++ b/lib/cowboy.ex @@ -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