nidus-sync/public-report/email.go
Eli Ribble 196792810b
Overhaul email sending system
Add logging and saving templates to the database for historical
accuracy.
2026-01-23 20:36:16 +00:00

18 lines
386 B
Go

package publicreport
import (
"fmt"
"net/http"
//"github.com/Gleipnir-Technology/nidus-sync/comms/email"
"github.com/go-chi/chi/v5"
)
func getEmailByCode(w http.ResponseWriter, r *http.Request) {
code := chi.URLParam(r, "code")
if code == "" {
http.Error(w, "You must specify a code", http.StatusBadRequest)
return
}
fmt.Fprintf(w, "Pretend email contet for %s", code)
}