Commit 921d3a51 authored by Matt Bell's avatar Matt Bell Committed by Juan Batiz-Benet

commands/http: Pass root command in as field instead of statically depending on core/commands

parent 9356e1a0
......@@ -50,7 +50,7 @@ func daemonFunc(res cmds.Response, req cmds.Request) {
return
}
handler := cmdsHttp.Handler{*ctx}
handler := cmdsHttp.Handler{*ctx, Root}
http.Handle(cmdsHttp.ApiPath+"/", handler)
fmt.Printf("API server listening on '%s'\n", host)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment