默认版本
continuous-integration/drone/push Build is passing Details

This commit is contained in:
李寻欢 2021-08-31 17:07:14 +08:00
parent 35c6d434f0
commit ff5f07cf30
2 changed files with 5 additions and 5 deletions

View File

@ -9,9 +9,9 @@ steps:
use_cache: true
username: docker@1780395505853616
password: l4rQkKdtIOlHKkTv
# auto_tag: true
tags:
- v3
auto_tag: true
# tags:
# - v3
when:
event: push
branch: master

View File

@ -106,11 +106,11 @@ func main() {
ipStr := strings.Join(getIps(), ",")
app.GET("/hello", func(context *gin.Context) {
context.String(http.StatusOK, "[GET]-[API]-[v3]\n"+ipStr)
context.String(http.StatusOK, "[GET]-[API]-[latest]\n"+ipStr)
})
app.POST("/hello", func(context *gin.Context) {
context.String(http.StatusOK, "[POST]-[API]-[v3]\n"+ipStr)
context.String(http.StatusOK, "[POST]-[API]-[latest]\n"+ipStr)
})
app.GET("/ip", func(context *gin.Context) {