mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-18 21:55:08 +00:00
More admin data delete endpoints (#361)
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"github.com/micro/micro/v3/service"
|
||||
"github.com/micro/services/location/handler"
|
||||
pb "github.com/micro/services/location/proto"
|
||||
admin "github.com/micro/services/pkg/service/proto"
|
||||
"github.com/micro/services/pkg/tracing"
|
||||
)
|
||||
|
||||
@@ -14,7 +15,9 @@ func main() {
|
||||
service.Name("location"),
|
||||
)
|
||||
|
||||
pb.RegisterLocationHandler(location.Server(), new(handler.Location))
|
||||
h := new(handler.Location)
|
||||
pb.RegisterLocationHandler(location.Server(), h)
|
||||
admin.RegisterAdminHandler(location.Server(), h)
|
||||
|
||||
// TODO reinstate me
|
||||
//service.Subscribe(subscriber.Topic, new(subscriber.Location))
|
||||
|
||||
Reference in New Issue
Block a user