mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-20 14:35:07 +00:00
More data delete endpoints (#363)
This commit is contained in:
@@ -3,6 +3,7 @@ package main
|
||||
import (
|
||||
"github.com/micro/services/otp/handler"
|
||||
pb "github.com/micro/services/otp/proto"
|
||||
admin "github.com/micro/services/pkg/service/proto"
|
||||
"github.com/micro/services/pkg/tracing"
|
||||
|
||||
"github.com/micro/micro/v3/service"
|
||||
@@ -15,8 +16,10 @@ func main() {
|
||||
service.Name("otp"),
|
||||
)
|
||||
|
||||
h := new(handler.Otp)
|
||||
// Register handler
|
||||
pb.RegisterOtpHandler(srv.Server(), new(handler.Otp))
|
||||
pb.RegisterOtpHandler(srv.Server(), h)
|
||||
admin.RegisterAdminHandler(srv.Server(), h)
|
||||
|
||||
traceCloser := tracing.SetupOpentracing("otp")
|
||||
defer traceCloser.Close()
|
||||
|
||||
Reference in New Issue
Block a user