diff --git a/main.go b/main.go index 310f574..e3c90ca 100644 --- a/main.go +++ b/main.go @@ -44,22 +44,22 @@ 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("/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("/v1/subscribeEmail", func(c echo.Context) error { return c.JSON(http.StatusOK, "ok") }) + e.GET("/v1/unsubscribeEmail", func(c echo.Context) error { return c.JSON(http.StatusOK, "ok") }) + e.GET("/v1/subscribeTopic", func(c echo.Context) error { return c.JSON(http.StatusOK, "ok") }) + e.GET("/v1/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/")) + apps.InitUserGroup(e.Group("/v1/user/")) - apps.InitStaticGroup(e.Group("/static/v1/")) + apps.InitStaticGroup(e.Group("/v1/static/")) //ai - apps.InitAiGroup(e.Group("/ai/v1/", func(next echo.HandlerFunc) echo.HandlerFunc { + apps.InitAiGroup(e.Group("/v1/ai/", func(next echo.HandlerFunc) echo.HandlerFunc { return func(c echo.Context) error { c.Set(constant.BizId, constant.BizIdAI) return next(c) diff --git a/static/css/login.css b/static/css/login.css index a9d3286..fcd5719 100644 --- a/static/css/login.css +++ b/static/css/login.css @@ -21,7 +21,7 @@ body { align-items: center; background-color: var(--white); - background: url("/static/v1/img/003.jpeg"); + background: url("/v1/static/img/003.jpeg"); background-attachment: fixed; background-position: center; background-repeat: no-repeat; @@ -104,7 +104,7 @@ body { .overlay { background-color: var(--lightblue); - background: url("/static/v1/img/003.jpeg"); + background: url("/v1/static/img/003.jpeg"); background-attachment: fixed; background-position: center; background-repeat: no-repeat; diff --git a/static/login.html b/static/login.html index f91fc04..93c278e 100644 --- a/static/login.html +++ b/static/login.html @@ -2,7 +2,7 @@