update web to use go-micro v3
This commit is contained in:
committed by
Jörn Friedrich Dreyer
parent
6644f5b679
commit
54c4331479
@@ -1,6 +1,7 @@
|
||||
package http
|
||||
|
||||
import (
|
||||
"github.com/asim/go-micro/v3"
|
||||
"github.com/owncloud/ocis/ocis-pkg/middleware"
|
||||
"github.com/owncloud/ocis/ocis-pkg/service/http"
|
||||
webmid "github.com/owncloud/ocis/web/pkg/middleware"
|
||||
@@ -48,10 +49,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
|
||||
|
||||
Reference in New Issue
Block a user