refactor(main): remove embedded HTML and JS snippets from main.go

This commit is contained in:
Tomas Dvorak
2026-05-12 12:47:25 +02:00
parent 4e17d412a8
commit 25bd96f2bb
+2 -1
View File
@@ -204,6 +204,7 @@ var domainMap = map[string]EmailConfig{
"sportcreative.eu": {"[email protected]", "@dN$TZPgG5!", "smtp.purelymail.com", 465}, "sportcreative.eu": {"[email protected]", "@dN$TZPgG5!", "smtp.purelymail.com", 465},
"reklik.net": {"[email protected]", "FK8eAwJbSkP2%H", "smtp.purelymail.com", 465}, "reklik.net": {"[email protected]", "FK8eAwJbSkP2%H", "smtp.purelymail.com", 465},
"zeusport.eu": {"[email protected]", "r-:#sSQ?9D%C4t8", "smtp.forpsi.com", 465}, "zeusport.eu": {"[email protected]", "r-:#sSQ?9D%C4t8", "smtp.forpsi.com", 465},
"bookra.eu": {"[email protected]", "n2$6cwSwqff$J58", "smtp.purelymail.com", 465},
} }
func sendHandler(w http.ResponseWriter, r *http.Request) { func sendHandler(w http.ResponseWriter, r *http.Request) {
@@ -355,5 +356,5 @@ func main() {
http.HandleFunc("/send", enableCors(sendHandler)) http.HandleFunc("/send", enableCors(sendHandler))
http.HandleFunc("/send-params", enableCors(sendParamsHandler)) http.HandleFunc("/send-params", enableCors(sendParamsHandler))
log.Println("Server running on :660") log.Println("Server running on :660")
log.Fatal(http.ListenAndServe(":660", nil)) log.Fatal(http.ListenAndServe("0.0.0.0:660", nil))
} }