meetandeat/controller/examples/ping.go

12 lines
150 B
Go

package examples
import (
"net/http"
"github.com/gin-gonic/gin"
)
func ping(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{"message": "pong"})
}