update go gin server samples

This commit is contained in:
William Cheng
2021-06-14 18:50:21 +08:00
parent 376e4192e1
commit 795c25d273

View File

@@ -41,6 +41,8 @@ func NewRouter() *gin.Engine {
router.POST(route.Pattern, route.HandlerFunc)
case http.MethodPut:
router.PUT(route.Pattern, route.HandlerFunc)
case http.MethodPatch:
router.PATCH(route.Pattern, route.HandlerFunc)
case http.MethodDelete:
router.DELETE(route.Pattern, route.HandlerFunc)
}