1
0

JSON ping lol

This commit is contained in:
Antonio Cheong 2023-04-03 10:11:16 +08:00
parent 00574ffb35
commit 86c86106da

View File

@ -34,7 +34,9 @@ func init() {
func main() {
router := gin.Default()
router.GET("/ping", func(c *gin.Context) {
c.String(200, "pong")
c.JSON(200, gin.H{
"message": "pong",
})
})
/// Admin routes