Skip to content

Commit 3f564e8

Browse files
authored
router.go: 将状态码由 200 调整为 http.StatusOK (#1299)
1 parent b6f3038 commit 3f564e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/initialize/router.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func Routers() *gin.Engine {
4141
{
4242
// 健康监测
4343
PublicGroup.GET("/health", func(c *gin.Context) {
44-
c.JSON(200, "ok")
44+
c.JSON(http.StatusOK, "ok")
4545
})
4646
}
4747
{

0 commit comments

Comments
 (0)