diff --git a/internal/http/handler/pinghandler.go b/internal/http/handler/pinghandler.go index fa413fe..7bd4ad8 100644 --- a/internal/http/handler/pinghandler.go +++ b/internal/http/handler/pinghandler.go @@ -5,3 +5,7 @@ import "github.com/gin-gonic/gin" func PingPong(context *gin.Context) { context.String(200, "pong\n") } + +func DoNothing(context *gin.Context) { + context.Status(200) +} diff --git a/internal/http/router/router.go b/internal/http/router/router.go index c016bd1..0ccf82a 100644 --- a/internal/http/router/router.go +++ b/internal/http/router/router.go @@ -9,6 +9,7 @@ import ( func InitRouter(r *gin.Engine, client *ent.Client) { // PingPong 테스트 r.GET("/ping", handler.PingPong) + r.HEAD("/ping", handler.DoNothing) // 회사 리스트 조회 // curl -X GET http://localhost:8080/companies