Skip to content

Commit

Permalink
feature: pass in the http request to commands
Browse files Browse the repository at this point in the history
  • Loading branch information
akeemphilbert committed Apr 11, 2024
1 parent 51140bc commit 66eabb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions rest/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,5 @@ type CommandOptions struct {
Projections map[string]Projection
HttpClient *http.Client
GORMDB *gorm.DB
Request *http.Request
}
1 change: 1 addition & 0 deletions rest/controllers.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ func DefaultWriteController(p *ControllerParams) echo.HandlerFunc {
ResourceRepository: p.ResourceRepository,
DefaultProjection: defaultProjection,
HttpClient: p.HttpClient,
Request: ctxt.Request(),
})

if response.Code != 0 {
Expand Down

0 comments on commit 66eabb4

Please sign in to comment.