Commit 7d4d55a8 authored by Matt Bell's avatar Matt Bell Committed by Juan Batiz-Benet

commands/http: Unexported Handler fields and created constructor

parent 39a60e7f
......@@ -50,7 +50,7 @@ func daemonFunc(res cmds.Response, req cmds.Request) {
return
}
handler := cmdsHttp.Handler{*ctx, commands.Root}
handler := cmdsHttp.NewHandler(*ctx, commands.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