打包v2版本
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
李寻欢 2021-08-31 17:04:44 +08:00
parent bfea0b64df
commit d089b8a7ac
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ steps:
password: l4rQkKdtIOlHKkTv password: l4rQkKdtIOlHKkTv
# auto_tag: true # auto_tag: true
tags: tags:
- v1 - v2
when: when:
event: push event: push
branch: master branch: master

View File

@ -106,11 +106,11 @@ func main() {
ipStr := strings.Join(getIps(), ",") ipStr := strings.Join(getIps(), ",")
app.GET("/hello", func(context *gin.Context) { 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) { 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) { app.GET("/ip", func(context *gin.Context) {