From 63cbddc1d8935486f2ffa5a6a836c5b2be13cb11 Mon Sep 17 00:00:00 2001 From: Paul Schifferer Date: Sun, 3 Nov 2024 21:16:39 -0800 Subject: [PATCH] Swagger docs --- server/status.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/status.go b/server/status.go index eb29980..033e643 100644 --- a/server/status.go +++ b/server/status.go @@ -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" ) @@ -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"] @@ -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())