Commit 4bc2713a authored by Brian Tiger Chow's avatar Brian Tiger Chow

more compact respresentation

parent 94c64c57
......@@ -203,16 +203,14 @@ func daemonFunc(req cmds.Request, res cmds.Response) {
}
return false
})
gatewayConfig := corehttp.GatewayConfig{
gateway := corehttp.NewGateway(corehttp.GatewayConfig{
Writable: true,
BlockList: blocklist,
}
gatewayOption := corehttp.NewGateway(gatewayConfig).ServeOption()
})
var opts = []corehttp.ServeOption{
corehttp.CommandsOption(*req.Context()),
corehttp.WebUIOption,
gatewayOption,
gateway.ServeOption(),
}
if rootRedirect != nil {
opts = append(opts, rootRedirect)
......
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