Skip to content

Commit

Permalink
api: make txpool subscription reachable
Browse files Browse the repository at this point in the history
  • Loading branch information
libotony committed Sep 4, 2023
1 parent 9dd39fc commit 383f954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/subscriptions/subscriptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,6 @@ func (s *Subscriptions) Close() {
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").Methods("Get").HandlerFunc(utils.WrapHandlerFunc(s.handlePendingTransactions))
sub.Path("/{subject}").Methods("Get").HandlerFunc(utils.WrapHandlerFunc(s.handleSubject))
}

0 comments on commit 383f954

Please sign in to comment.