This commit is contained in:
parent
b4d60b891c
commit
3bd4b166be
@ -9,7 +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:
|
||||||
|
- v1
|
||||||
when:
|
when:
|
||||||
event: push
|
event: push
|
||||||
branch: master
|
branch: master
|
4
main.go
4
main.go
@ -104,11 +104,11 @@ func main() {
|
|||||||
initNacos()
|
initNacos()
|
||||||
|
|
||||||
app.GET("/hello", func(context *gin.Context) {
|
app.GET("/hello", func(context *gin.Context) {
|
||||||
context.String(http.StatusOK, "[GET]node01"+port)
|
context.String(http.StatusOK, "[GET]-[API]-v1"+port)
|
||||||
})
|
})
|
||||||
|
|
||||||
app.POST("/hello", func(context *gin.Context) {
|
app.POST("/hello", func(context *gin.Context) {
|
||||||
context.String(http.StatusOK, "[POST]node01"+port)
|
context.String(http.StatusOK, "[POST]-[API]-v1"+port)
|
||||||
})
|
})
|
||||||
|
|
||||||
app.GET("/ip", func(context *gin.Context) {
|
app.GET("/ip", func(context *gin.Context) {
|
||||||
|
Loading…
Reference in New Issue
Block a user