Add binary handler to http

This commit is contained in:
2021-12-08 06:36:41 +01:00
parent 75735c0e43
commit dd1649c3ba
3 changed files with 39 additions and 2 deletions

View File

@@ -183,7 +183,7 @@ func ActionServe(c *cli.Context) error {
if c.IsSet("http-addr") {
httpAddr = c.String("http-addr")
}
httpServer := server.NewHTTPSever(s, srvCertBytes, cfg.Server.GRPCEndpoint)
httpServer := server.NewHTTPSever(s, binaryStore, srvCertBytes, cfg.Server.GRPCEndpoint)
httpServer.Logger = httpLogger
httpServer.Addr = httpAddr