Browse Source

打包v1版本

master
李寻欢 9 months ago
parent
commit
bfea0b64df
  1. 6
      main.go

6
main.go

@ -103,12 +103,14 @@ func main() {
app := gin.Default()
initNacos()
ipStr := strings.Join(getIps(), ",")
app.GET("/hello", func(context *gin.Context) {
context.String(http.StatusOK, "[GET]-[API]-v1"+port)
context.String(http.StatusOK, "[GET]-[API]-[v1]\n"+ipStr)
})
app.POST("/hello", func(context *gin.Context) {
context.String(http.StatusOK, "[POST]-[API]-v1"+port)
context.String(http.StatusOK, "[POST]-[API]-[v1]\n"+ipStr)
})
app.GET("/ip", func(context *gin.Context) {

Loading…
Cancel
Save