Skip to content

Commit f2b7d30

Browse files
authored
Add Discovery API route (#205)
1 parent e3b3518 commit f2b7d30

3 files changed

Lines changed: 57 additions & 0 deletions

File tree

go/wallet/bundle.zip

-70 Bytes
Binary file not shown.

go/wallet/discovery_handler.go

Lines changed: 56 additions & 0 deletions
Large diffs are not rendered by default.

go/wallet/server.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ func NewHTTPServer(port uint, config *FlowConfig) (*server, error) {
5959
apiRouter.HandleFunc("/", srv.configHandler).Methods("GET")
6060
apiRouter.HandleFunc("/polling-session", srv.getPollingSessionHandler).Methods("GET")
6161
apiRouter.HandleFunc("/polling-session", srv.postPollingSessionHandler).Methods("POST")
62+
apiRouter.HandleFunc("/discovery", srv.discoveryHandler)
6263
apiRouter.HandleFunc("/{service}", srv.postServiceHandler).Methods("POST")
6364

6465
// Main route

0 commit comments

Comments
 (0)