Skip to content

Commit

Permalink
simplify txpool subscription url
Browse files Browse the repository at this point in the history
  • Loading branch information
libotony committed Aug 11, 2023
1 parent b545094 commit 882f45f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/doc/thor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ paths:
- $ref: '#/components/schemas/Beat2'
- $ref: '#/components/schemas/Obsolete'

/subscritpions/txpool/pending:
/subscritpions/txpool:
get:
tags:
- Subscriptions
Expand Down
2 changes: 1 addition & 1 deletion api/subscriptions/subscriptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,5 +382,5 @@ func (s *Subscriptions) Mount(root *mux.Router, pathPrefix string) {
sub := root.PathPrefix(pathPrefix).Subrouter()

sub.Path("/{subject}").Methods("Get").HandlerFunc(utils.WrapHandlerFunc(s.handleSubject))
sub.Path("/txpool/pending").Methods("Get").HandlerFunc(utils.WrapHandlerFunc(s.handlePendingTransactions))
sub.Path("/txpool").Methods("Get").HandlerFunc(utils.WrapHandlerFunc(s.handlePendingTransactions))
}

0 comments on commit 882f45f

Please sign in to comment.