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!")
|
|
|
|
}
|