Skip to content

Commit

Permalink
add update transaction api
Browse files Browse the repository at this point in the history
  • Loading branch information
Gitong23 committed May 12, 2024
1 parent d1c50cd commit 1724981
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ func New(db *sql.DB, cfg config.Config, logger *zap.Logger) *Server {
{
h := transaction.NewHandler(cfg.FeatureFlag, db)
v1.POST("/transactions", h.Create)
v1.PUT("/transactions/:id", h.Update)
}

return &Server{e}
Expand Down

0 comments on commit 1724981

Please sign in to comment.