update for latest micro

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-04-20 23:43:41 +03:00
parent 885149f05f
commit 36b57727dd
7 changed files with 176 additions and 330 deletions

View File

@@ -158,8 +158,9 @@ func RegisterRegisterServer(s server.Server, sh RegisterServer, opts ...server.H
register
}
h := &registerServer{sh}
var nopts []server.HandlerOption
for _, endpoint := range NewRegisterEndpoints() {
opts = append(opts, api.WithEndpoint(endpoint))
nopts = append(nopts, api.WithEndpoint(endpoint))
}
return s.Handle(s.NewHandler(&Register{h}, opts...))
return s.Handle(s.NewHandler(&Register{h}, append(nopts, opts...)...))
}