mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-19 05:55:19 +00:00
Add Email to send verification endpoints in user service (#277)
* Add Email to send verification endpoints in user service * updates
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"github.com/micro/micro/v3/service"
|
||||
"github.com/micro/micro/v3/service/logger"
|
||||
db "github.com/micro/services/db/proto"
|
||||
otp "github.com/micro/services/otp/proto"
|
||||
"github.com/micro/services/pkg/tracing"
|
||||
"github.com/micro/services/user/handler"
|
||||
proto "github.com/micro/services/user/proto"
|
||||
@@ -15,9 +16,12 @@ func main() {
|
||||
)
|
||||
service.Init()
|
||||
|
||||
handl := handler.NewUser(db.NewDbService("db", service.Client()))
|
||||
hd := handler.NewUser(
|
||||
db.NewDbService("db", service.Client()),
|
||||
otp.NewOtpService("otp", service.Client()),
|
||||
)
|
||||
|
||||
proto.RegisterUserHandler(service.Server(), handl)
|
||||
proto.RegisterUserHandler(service.Server(), hd)
|
||||
traceCloser := tracing.SetupOpentracing("user")
|
||||
defer traceCloser.Close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user