Skip to content

Commit

Permalink
router.go: 将状态码由 200 调整为 http.StatusOK (#1299)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonghuaroot committed Dec 8, 2022
1 parent 26db336 commit 7aafc1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/initialize/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func Routers() *gin.Engine {
{
// 健康监测
PublicGroup.GET("/health", func(c *gin.Context) {
c.JSON(200, "ok")
c.JSON(http.StatusOK, "ok")
})
}
{
Expand Down

0 comments on commit 7aafc1b

Please sign in to comment.