19 lines
368 B
Go
19 lines
368 B
Go
package services
|
|
|
|
import (
|
|
"wm-backend/response"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// @Summary Health check
|
|
// @Description Check server is running
|
|
// @Tags health
|
|
// @Accept json
|
|
// @Produce json
|
|
// @Success 200 {object} map[string]string
|
|
// @Router /ping [get]
|
|
func PingHandler(c *gin.Context) {
|
|
response.Ok(c, "Ponggg", nil)
|
|
}
|