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 <[email protected]>
  • Loading branch information
Lars Gierth committed Apr 18, 2018
1 parent dd76eae commit 0dc0a04
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 @@ -180,6 +180,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 0dc0a04

Please sign in to comment.