Skip to content

Commit

Permalink
Refactor ping endpoint to use WriteString method
Browse files Browse the repository at this point in the history
  • Loading branch information
funnyzak committed Feb 16, 2024
1 parent aae8a04 commit b63018c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/srv/controller/common_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,5 @@ func (p *commonPage) home(c *gin.Context) {
}

func (p *commonPage) ping(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{
"message": "pong",
})
c.Writer.WriteString("pong")
}

0 comments on commit b63018c

Please sign in to comment.