package verify import ( "bytes" "html/template" "net/http" "github.com/gin-gonic/gin" "edge-infra.dev/pkg/edge/iam/verify/templates" ) func begin(ctx *gin.Context) { t, err := template.New("").Parse(templates.Register) tpl := template.Must(t, err) var w bytes.Buffer _ = tpl.Execute(&w, "") // Write the HTML to the response ctx.Data(http.StatusOK, gin.MIMEHTML, w.Bytes()) } func choose(ctx *gin.Context) { t, err := template.New("").Parse(templates.Choose) tpl := template.Must(t, err) var w bytes.Buffer _ = tpl.Execute(&w, "") // Write the HTML to the response ctx.Data(http.StatusOK, gin.MIMEHTML, w.Bytes()) } func custom(ctx *gin.Context) { t, err := template.New("").Parse(templates.Customize) tpl := template.Must(t, err) var w bytes.Buffer _ = tpl.Execute(&w, "") // Write the HTML to the response ctx.Data(http.StatusOK, gin.MIMEHTML, w.Bytes()) }