update accounts, settings, storage-metadata and ocis-pkg to use asim go-micro v3

This commit is contained in:
A.Unger
2021-02-18 08:00:02 +00:00
committed by Jörn Friedrich Dreyer
parent 83851ca2bb
commit 005f47d436
24 changed files with 501 additions and 108 deletions
+3 -7
View File
@@ -1,6 +1,7 @@
package http
import (
"github.com/asim/go-micro/v3"
"github.com/go-chi/chi"
"github.com/owncloud/ocis/accounts/pkg/assets"
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
@@ -60,13 +61,8 @@ func Server(opts ...Option) http.Service {
proto.RegisterGroupsServiceWeb(r, handler)
})
service.Handle(
"/",
mux,
)
micro.RegisterHandler(service.Server(), mux)
if err := service.Init(); err != nil {
panic(err)
}
service.Init()
return service
}