mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-18 05:35:10 +00:00
More admin data delete endpoints (#361)
This commit is contained in:
@@ -3,6 +3,7 @@ package main
|
||||
import (
|
||||
"github.com/micro/services/file/handler"
|
||||
pb "github.com/micro/services/file/proto"
|
||||
admin "github.com/micro/services/pkg/service/proto"
|
||||
"github.com/micro/services/pkg/tracing"
|
||||
|
||||
"github.com/micro/micro/v3/service"
|
||||
@@ -16,8 +17,10 @@ func main() {
|
||||
service.Version("latest"),
|
||||
)
|
||||
|
||||
h := handler.NewFile()
|
||||
// Register handler
|
||||
pb.RegisterFileHandler(srv.Server(), handler.NewFile())
|
||||
pb.RegisterFileHandler(srv.Server(), h)
|
||||
admin.RegisterAdminHandler(srv.Server(), h)
|
||||
|
||||
traceCloser := tracing.SetupOpentracing("file")
|
||||
defer traceCloser.Close()
|
||||
|
||||
Reference in New Issue
Block a user