This commit is contained in:
parent
35c6d434f0
commit
ff5f07cf30
@ -9,9 +9,9 @@ steps:
|
|||||||
use_cache: true
|
use_cache: true
|
||||||
username: docker@1780395505853616
|
username: docker@1780395505853616
|
||||||
password: l4rQkKdtIOlHKkTv
|
password: l4rQkKdtIOlHKkTv
|
||||||
# auto_tag: true
|
auto_tag: true
|
||||||
tags:
|
# tags:
|
||||||
- v3
|
# - v3
|
||||||
when:
|
when:
|
||||||
event: push
|
event: push
|
||||||
branch: master
|
branch: master
|
4
main.go
4
main.go
@ -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]-[v3]\n"+ipStr)
|
context.String(http.StatusOK, "[GET]-[API]-[latest]\n"+ipStr)
|
||||||
})
|
})
|
||||||
|
|
||||||
app.POST("/hello", func(context *gin.Context) {
|
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) {
|
app.GET("/ip", func(context *gin.Context) {
|
||||||
|
Loading…
Reference in New Issue
Block a user