Update routers.mustache (#9662)

Add PATCH suppord.
This commit is contained in:
parpa
2021-06-14 19:48:55 +09:00
committed by GitHub
parent d14a82f7a7
commit 376e4192e1
@@ -33,6 +33,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)
}