update accounts, settings, storage-metadata and ocis-pkg to use asim go-micro v3
This commit is contained in:
committed by
Jörn Friedrich Dreyer
parent
83851ca2bb
commit
005f47d436
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user