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