 
     get "/:id/html" do
       email = conn.assigns.storage_driver.get(id)
+
       conn
       |> put_resp_content_type("text/html")
       |> send_resp(200, email.html_body)

        text_body: email.text_body,
        html_body: email.html_body,
        headers: email.headers,
        provider_options: Enum.map(email.provider_options, fn {k, v} -> %{key: k, value: inspect(v)} end),
        attachments: Enum.map(email.attachments, &render_attachment_json/1)
      }
    end

    get "/:id" do
      emails = conn.assigns.storage_driver.all()
      email = conn.assigns.storage_driver.get(id)

      conn
      |> put_resp_content_type("text/html")
      |> send_resp(200, template(emails: emails, email: email, conn: conn))
