Skip to content

Commit

Permalink
Swagger docs
Browse files Browse the repository at this point in the history
  • Loading branch information
paulyhedral committed Nov 4, 2024
1 parent e42c9f0 commit 63cbddc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/gin-gonic/gin"
apicores "github.com/sweetrpg/api-core/server"
_ "github.com/sweetrpg/api-core/vo"
"github.com/sweetrpg/common/logging"
)

Expand All @@ -27,7 +28,7 @@ func setupStatusHandlers(g *gin.Engine) {
// @Description Health check
// @Tags status
// @Produce json
// @Success 200 {object} interface{}
// @Success 200 {object} vo.HealthResponseVO
// @Router /status/health [get]
func healthHandler(c *gin.Context) {
// authHeader := c.Request.Header["Authorization"]
Expand Down Expand Up @@ -59,7 +60,7 @@ func healthHandler(c *gin.Context) {
// @Description Ping
// @Tags status
// @Produce json
// @Success 200 {object} interface{}
// @Success 200 {object} vo.PingResponseVO
// @Router /status/ping [get]
func pingHandler(c *gin.Context) {
c.JSON(http.StatusOK, apicores.PingHandler())
Expand Down

0 comments on commit 63cbddc

Please sign in to comment.