mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-22 07:15:25 +00:00
More deleteData endpoint impls (#362)
This commit is contained in:
@@ -3,6 +3,7 @@ package main
|
||||
import (
|
||||
"github.com/micro/micro/v3/service"
|
||||
"github.com/micro/micro/v3/service/logger"
|
||||
admin "github.com/micro/services/pkg/service/proto"
|
||||
"github.com/micro/services/search/handler"
|
||||
pb "github.com/micro/services/search/proto"
|
||||
)
|
||||
@@ -14,8 +15,10 @@ func main() {
|
||||
service.Version("latest"),
|
||||
)
|
||||
|
||||
h := handler.New(srv)
|
||||
// Register handler
|
||||
pb.RegisterSearchHandler(srv.Server(), handler.New(srv))
|
||||
pb.RegisterSearchHandler(srv.Server(), h)
|
||||
admin.RegisterAdminHandler(srv.Server(), h)
|
||||
|
||||
// Run service
|
||||
if err := srv.Run(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user