From 81033928f6b6d7a944947a4af908cc6f04cfc8c3 Mon Sep 17 00:00:00 2001 From: shaoyongjun Date: Thu, 13 Jul 2023 11:28:59 +0800 Subject: [PATCH] to:sync --- main.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index dda2cc8..8be43e2 100644 --- a/main.go +++ b/main.go @@ -44,7 +44,14 @@ func main() { //健康检测 e.GET("/health", func(c echo.Context) error { return c.JSON(http.StatusOK, "ok") }) e.GET("/name", func(c echo.Context) error { return c.JSON(http.StatusOK, "wx-server") }) - e.GET("/WW_verify_aMVgO6pcg3RRrMvk.txt", func(c echo.Context) error { return c.String(http.StatusOK, "aMVgO6pcg3RRrMvk") }) + e.GET("/subscribeEmail", func(c echo.Context) error { return c.JSON(http.StatusOK, "ok") }) + e.GET("/unsubscribeEmail", func(c echo.Context) error { return c.JSON(http.StatusOK, "ok") }) + e.GET("/subscribeTopic", func(c echo.Context) error { return c.JSON(http.StatusOK, "ok") }) + e.GET("/unsubscribeTopic", func(c echo.Context) error { return c.JSON(http.StatusOK, "ok") }) + e.GET("/WW_verify_aMVgO6pcg3RRrMvk.txt", func(c echo.Context) error { + //c.Response().Header().Set("Content-Type", "image/gif") + return c.String(http.StatusOK, "aMVgO6pcg3RRrMvk") + }) //user apps.InitUserGroup(e.Group("/user/v1/"))