diff --git a/.drone.yml b/.drone.yml index ec6c4c9..61e9071 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,7 +11,7 @@ steps: password: l4rQkKdtIOlHKkTv # auto_tag: true tags: - - v2 + - v3 when: event: push branch: master \ No newline at end of file diff --git a/main.go b/main.go index 62867c5..0e86236 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]-[v2]\n"+ipStr) + context.String(http.StatusOK, "[GET]-[API]-[v3]\n"+ipStr) }) app.POST("/hello", func(context *gin.Context) { - context.String(http.StatusOK, "[POST]-[API]-[v2]\n"+ipStr) + context.String(http.StatusOK, "[POST]-[API]-[v3]\n"+ipStr) }) app.GET("/ip", func(context *gin.Context) {