From d089b8a7ac59fae82c8dd61e7759b4737572e47d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AF=BB=E6=AC=A2?= Date: Tue, 31 Aug 2021 17:04:44 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=89=93=E5=8C=85v2=E7=89=88?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 +- main.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index f3f1295..ec6c4c9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,7 +11,7 @@ steps: password: l4rQkKdtIOlHKkTv # auto_tag: true tags: - - v1 + - v2 when: event: push branch: master \ No newline at end of file diff --git a/main.go b/main.go index dcfaf36..62867c5 100644 --- a/main.go +++ b/main.go @@ -106,11 +106,11 @@ func main() { ipStr := strings.Join(getIps(), ",") app.GET("/hello", func(context *gin.Context) { - context.String(http.StatusOK, "[GET]-[API]-[v1]\n"+ipStr) + context.String(http.StatusOK, "[GET]-[API]-[v2]\n"+ipStr) }) app.POST("/hello", func(context *gin.Context) { - context.String(http.StatusOK, "[POST]-[API]-[v1]\n"+ipStr) + context.String(http.StatusOK, "[POST]-[API]-[v2]\n"+ipStr) }) app.GET("/ip", func(context *gin.Context) {