defmodule WhoNeedHelpWeb.E2eTileController do
  use WhoNeedHelpWeb, :controller

  @tile_png Base.decode64!(
              "iVBORw0KGgoAAAANSUhEUgAAAQAAAAEAAQMAAABmvDolAAAAA1BMVEXu8vcBVSTwAAAAH0lEQVRo3u3BAQ0AAADCoPdPbQ43oAAAAAAAAAAAvg0hAAABfxmcpwAAAABJRU5ErkJggg=="
            )

  def show(conn, _params) do
    conn
    |> put_resp_content_type("image/png")
    |> put_resp_header("cache-control", "public, max-age=3600")
    |> send_resp(:ok, @tile_png)
  end
end
