forked from loafle/openapi-generator-original
update go gin server samples
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user