Skip to content

Commit

Permalink
Add Discovery API route (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink authored Jun 16, 2023
1 parent e3b3518 commit f2b7d30
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
Binary file modified go/wallet/bundle.zip
Binary file not shown.
56 changes: 56 additions & 0 deletions go/wallet/discovery_handler.go

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions go/wallet/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ func NewHTTPServer(port uint, config *FlowConfig) (*server, error) {
apiRouter.HandleFunc("/", srv.configHandler).Methods("GET")
apiRouter.HandleFunc("/polling-session", srv.getPollingSessionHandler).Methods("GET")
apiRouter.HandleFunc("/polling-session", srv.postPollingSessionHandler).Methods("POST")
apiRouter.HandleFunc("/discovery", srv.discoveryHandler)
apiRouter.HandleFunc("/{service}", srv.postServiceHandler).Methods("POST")

// Main route
Expand Down

0 comments on commit f2b7d30

Please sign in to comment.