TG settlement service
This commit is contained in:
@@ -27,6 +27,7 @@ type APIImp struct {
|
||||
services Microservices
|
||||
debug bool
|
||||
mw *Middleware
|
||||
router *chi.Mux
|
||||
}
|
||||
|
||||
func (a *APIImp) installMicroservice(srv mservice.MicroService) {
|
||||
@@ -69,6 +70,10 @@ func (a *APIImp) Register() messaging.Register {
|
||||
return a.mw
|
||||
}
|
||||
|
||||
func (a *APIImp) Router() *chi.Mux {
|
||||
return a.router
|
||||
}
|
||||
|
||||
func (a *APIImp) installServices() error {
|
||||
srvf := make([]api.MicroServiceFactoryT, 0)
|
||||
|
||||
@@ -117,6 +122,7 @@ func CreateAPI(logger mlogger.Logger, config *api.Config, l localizer.Localizer,
|
||||
p.config = config
|
||||
p.db = db
|
||||
p.localizer = l
|
||||
p.router = router
|
||||
|
||||
var err error
|
||||
if p.domain, err = domainprovider.CreateDomainProvider(p.logger, config.Mw.DomainEnv, config.Mw.APIProtocolEnv, config.Mw.EndPointEnv); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user