From f12f2f6b59d3f0e11f36cba0f7e39c0e721f9052 Mon Sep 17 00:00:00 2001 From: Luna Mendes Date: Tue, 12 Jun 2018 20:21:03 -0300 Subject: [PATCH] cowboy: add / to index.html --- lib/cowboy.ex | 1 + 1 file changed, 1 insertion(+) 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