Skip to content

Commit

Permalink
gateway: expose commands for js-libp2p delegated routing
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
  • Loading branch information
Lars Gierth committed Aug 31, 2018
1 parent 9a21a8c commit 23a68cd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions core/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,18 @@ var rootROSubcommands = map[string]*cmds.Command{
}),
"resolve": lgc.NewCommand(ResolveCmd),
"version": lgc.NewCommand(VersionCmd),
"refs": lgc.NewCommand(RefsROCmd),
"dht": lgc.NewCommand(&oldcmds.Command{
Subcommands: map[string]*oldcmds.Command{
"findprovs": findProvidersDhtCmd,
"findpeer": findPeerDhtCmd,
},
}),
"swarm": lgc.NewCommand(&oldcmds.Command{
Subcommands: map[string]*oldcmds.Command{
"connect": swarmConnectCmd,
},
}),
}

func init() {
Expand Down

0 comments on commit 23a68cd

Please sign in to comment.