@cryptotaxi247 / kubo / commits / 921d3a51a

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

Matt Bell committed Oct 30, 2014 at 20:44 UTC 921d3a51ab3ed10489df2721ce8450d672074e7f
1 file changed +1 -1
core/commands2/daemon.go
+1 -1
@@ -50,7 +50,7 @@ func daemonFunc(res cmds.Response, req cmds.Request) {
50 return
51 }
52
53 - handler := cmdsHttp.Handler{*ctx}
53 + handler := cmdsHttp.Handler{*ctx, Root}
54 http.Handle(cmdsHttp.ApiPath+"/", handler)
55
56 fmt.Printf("API server listening on '%s'\n", host)