18 lines
325 B
Go
18 lines
325 B
Go
package handlers
|
|
|
|
import (
|
|
"git.qowevisa.me/Qowevisa/gonuts/types"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// @Summary Ping
|
|
// @Description Pong
|
|
// @Tags user
|
|
// @Accept json
|
|
// @Produce json
|
|
// @Success 200 {object} types.Message
|
|
// @Router /ping [get]
|
|
func PingGet(c *gin.Context) {
|
|
c.JSON(200, types.Message{Message: "Pong!"})
|
|
}
|