We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5870452 commit a01fafbCopy full SHA for a01fafb
internal/http/handler/pinghandler.go
@@ -5,3 +5,7 @@ import "github.com/gin-gonic/gin"
5
func PingPong(context *gin.Context) {
6
context.String(200, "pong\n")
7
}
8
+
9
+func DoNothing(context *gin.Context) {
10
+ context.Status(200)
11
+}
internal/http/router/router.go
@@ -9,6 +9,7 @@ import (
func InitRouter(r *gin.Engine, client *ent.Client) {
// PingPong 테스트
r.GET("/ping", handler.PingPong)
12
+ r.HEAD("/ping", handler.DoNothing)
13
14
// 회사 리스트 조회
15
// curl -X GET http://localhost:8080/companies
0 commit comments