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 Apr 21, 2018
1 parent 8b383da commit 287cbed
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 287cbed

Please sign in to comment.