 
   plug :match
   plug :dispatch
-
 
   get "/" do
     conn

defmodule FunWithFlags.UI.Router do
  use Plug.Router
  alias FunWithFlags.UI.Templates

  plug Plug.Static,
    at: "/assets",



  defp redirect_to(conn, uri) do
    path = normalize(uri)

    conn
    |> put_resp_header("location", path)
    |> put_resp_content_type("text/html")
    |> send_resp(302, "<html><body>You are being <a href=\"#{path}\">redirected</a>.</body></html>")
  end


  defp normalize(path) do
    Path.join(@prefix, path)
  end
end
