Skip to content

Commit

Permalink
feature WS-758: Added the http client to the controller params in the…
Browse files Browse the repository at this point in the history
… RouteInitializer
  • Loading branch information
IshikaGopie committed May 7, 2024
1 parent ff48a9f commit cb14053
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions rest/initializers.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ func RouteInitializer(p RouteParams) (err error) {
Operation: map[string]*openapi3.Operation{
method: operation,
},
GORMDB: p.GORMDB,
GORMDB: p.GORMDB,
HttpClient: NewClient(),
})
}
}
Expand All @@ -158,7 +159,8 @@ func RouteInitializer(p RouteParams) (err error) {
Operation: map[string]*openapi3.Operation{
method: operation,
},
GORMDB: p.GORMDB,
GORMDB: p.GORMDB,
HttpClient: NewClient(),
})
default:
handler = DefaultWriteController(&ControllerParams{
Expand All @@ -173,7 +175,8 @@ func RouteInitializer(p RouteParams) (err error) {
Operation: map[string]*openapi3.Operation{
method: operation,
},
GORMDB: p.GORMDB,
GORMDB: p.GORMDB,
HttpClient: NewClient(),
})
}
}
Expand Down

0 comments on commit cb14053

Please sign in to comment.