12 lines
197 B
Go
12 lines
197 B
Go
package v1
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func (h *Handler) getPing(c *gin.Context) {
|
|
c.Writer.Header().Set("Content-Type", "text/plain")
|
|
c.String(http.StatusOK, "pong")
|
|
}
|