diff --git a/control/service.go b/control/service.go index 6a12e5c..e774435 100644 --- a/control/service.go +++ b/control/service.go @@ -40,7 +40,7 @@ func (srv Service) Load() error { server.OK(c, data) }) - ctlAPI.GET("test_email", auth.ACAdmin(), func(c *gin.Context) { + ctlAPI.POST("test_email", auth.ACAdmin(), func(c *gin.Context) { tos := c.Query("to") if tos == "" { panic(errors.ErrorBadRequest)