Skip to content

Commit

Permalink
Revert "Update gin example to use most recent release changes (#554)"
Browse files Browse the repository at this point in the history
This reverts commit 09c1d86. I merged
it after rolling back a change that it was dependent on.

#554 (comment)
  • Loading branch information
marcinromaszewicz committed May 4, 2022
1 parent 8e96ef6 commit 5254bbf
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 18 deletions.
41 changes: 27 additions & 14 deletions examples/petstore-expanded/gin/api/petstore-server.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/petstore-expanded/gin/api/petstore-types.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions examples/petstore-expanded/gin/petstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ func NewGinPetServer(petStore *api.PetStore, port int) *http.Server {
r.Use(middleware.OapiRequestValidator(swagger))

// We now register our petStore above as the handler for the interface
apiRoutes := api.RegisterHandlers(r, petStore).(*gin.RouterGroup)

r.Use(apiRoutes.Handlers...)
r = api.RegisterHandlers(r, petStore)

s := &http.Server{
Handler: r,
Expand Down

0 comments on commit 5254bbf

Please sign in to comment.