Skip to content

Commit

Permalink
fix : test server response
Browse files Browse the repository at this point in the history
  • Loading branch information
seipan committed Oct 3, 2023
1 parent 5b1b0d7 commit 240866f
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 8 deletions.
4 changes: 3 additions & 1 deletion testserver/localhost/8081/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ func main() {
})
})
router.GET("/", func(c *gin.Context) {
c.Redirect(302, "/health")
c.JSON(200, gin.H{
"message": "ok",
})
})
router.Run(":8081")
}
4 changes: 3 additions & 1 deletion testserver/localhost/8082/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ func main() {
})
})
router.GET("/", func(c *gin.Context) {
c.Redirect(302, "/health")
c.JSON(200, gin.H{
"message": "ok",
})
})
router.Run(":8082")
}
4 changes: 3 additions & 1 deletion testserver/localhost/8083/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ func main() {
})
})
router.GET("/", func(c *gin.Context) {
c.Redirect(302, "/health")
c.JSON(200, gin.H{
"message": "ok",
})
})
router.Run(":8083")
}
4 changes: 3 additions & 1 deletion testserver/localhost/8085/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ func main() {
})
})
router.GET("/", func(c *gin.Context) {
c.Redirect(302, "/health")
c.JSON(200, gin.H{
"message": "ok",
})
})
router.Run(":8085")
}
4 changes: 3 additions & 1 deletion testserver/localhost/8086/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ func main() {
})
})
router.GET("/", func(c *gin.Context) {
c.Redirect(302, "/health")
c.JSON(200, gin.H{
"message": "ok",
})
})
router.Run(":8086")
}
4 changes: 3 additions & 1 deletion testserver/localhost/8087/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ func main() {
})
})
router.GET("/", func(c *gin.Context) {
c.Redirect(302, "/health")
c.JSON(200, gin.H{
"message": "ok",
})
})
router.Run(":8087")
}
4 changes: 3 additions & 1 deletion testserver/localhost/8088/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ func main() {
})
})
router.GET("/", func(c *gin.Context) {
c.Redirect(302, "/health")
c.JSON(200, gin.H{
"message": "ok",
})
})
router.Run(":8088")
}
4 changes: 3 additions & 1 deletion testserver/localhost/8089/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ func main() {
})
})
router.GET("/", func(c *gin.Context) {
c.Redirect(302, "/health")
c.JSON(200, gin.H{
"message": "ok",
})
})
router.Run(":8089")
}

0 comments on commit 240866f

Please sign in to comment.