Swagger docs
This commit is contained in:
@ -6,6 +6,14 @@ import (
|
||||
"github.com/labstack/echo/v4"
|
||||
)
|
||||
|
||||
// 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]
|
||||
func Ping(c echo.Context) error {
|
||||
return c.String(http.StatusOK, "Pong!")
|
||||
}
|
||||
|
Reference in New Issue
Block a user