mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-23 20:49:13 -05:00
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/ocis-pkg/account"
|
||||
"github.com/owncloud/ocis/ocis-pkg/middleware"
|
||||
@@ -70,13 +71,8 @@ func Server(opts ...Option) http.Service {
|
||||
proto.RegisterPermissionServiceWeb(r, handle)
|
||||
})
|
||||
|
||||
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