update graph-explorer to use go-micro v3

This commit is contained in:
A.Unger
2021-02-17 11:51:23 +01:00
committed by Jörn Friedrich Dreyer
parent 9b9f4703af
commit 656d034dd3
3 changed files with 108 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
package http
import (
"github.com/asim/go-micro/v3"
svc "github.com/owncloud/ocis/graph-explorer/pkg/service/v0"
"github.com/owncloud/ocis/graph-explorer/pkg/version"
"github.com/owncloud/ocis/ocis-pkg/middleware"
@@ -46,10 +47,7 @@ func Server(opts ...Option) (http.Service, error) {
handle = svc.NewTracing(handle)
}
service.Handle(
"/",
handle,
)
micro.RegisterHandler(service.Server(), handle)
service.Init()
return service, nil