mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-18 20:27:08 +00:00
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