More data delete endpoints (#363)

This commit is contained in:
Dominic Wong
2022-02-03 17:32:08 +00:00
committed by GitHub
parent ba77f7b2f4
commit 0663f196d5
9 changed files with 144 additions and 14 deletions

View File

@@ -1,6 +1,7 @@
package main
import (
admin "github.com/micro/services/pkg/service/proto"
"github.com/micro/services/pkg/tracing"
"github.com/micro/services/qr/handler"
pb "github.com/micro/services/qr/proto"
@@ -16,8 +17,10 @@ func main() {
service.Version("latest"),
)
h := handler.New()
// Register handler
pb.RegisterQrHandler(srv.Server(), handler.New())
pb.RegisterQrHandler(srv.Server(), h)
admin.RegisterAdminHandler(srv.Server(), h)
traceCloser := tracing.SetupOpentracing("qr")
defer traceCloser.Close()