Template
1
0
Fork 0
goth.stack/api/ping.go

20 lines
334 B
Go
Raw Normal View History

2023-05-18 20:04:55 -06:00
package api
import (
"net/http"
"github.com/labstack/echo/v4"
)
2024-10-20 16:16:50 -06:00
// Ping godoc
// @Summary Ping the server
// @Description Get a pong response
// @Tags ping
// @Accept json
// @Produce json
// @Success 200 {string} string "Pong!"
// @Router /ping [get]
2023-05-18 20:04:55 -06:00
func Ping(c echo.Context) error {
return c.String(http.StatusOK, "Pong!")
}