Skip to content

Commit

Permalink
SMTP GUI: Fixing hard-coded path
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Hinderberger committed Jul 3, 2024
1 parent 3c25b61 commit 3588c58
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions internal/smtp/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"fmt"
"html/template"
"net/http"
"os"
"path"
"regexp"
"strconv"
Expand Down Expand Up @@ -225,19 +224,6 @@ func (h *smtpHTTPHandler) handleGUIMessage(w http.ResponseWriter, r *http.Reques
return
}

// TODO: For local testing only - remove before commit

src, err := os.ReadFile("/home/work/Repositories/apitest/internal/smtp/gui_message.html")
if err != nil {
panic(err)
}

guiMessageTemplate = template.Must(template.
New("gui_message").
Funcs(sprig.TxtFuncMap()).
Parse(string(src)),
)

err = guiMessageTemplate.Execute(w, map[string]any{
"prefix": h.prefix,
"metadata": metadata,
Expand Down

0 comments on commit 3588c58

Please sign in to comment.