mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
Delete data endpoints (#364)
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"github.com/micro/micro/v3/service/logger"
|
||||
"github.com/micro/services/function/handler"
|
||||
pb "github.com/micro/services/function/proto"
|
||||
admin "github.com/micro/services/pkg/service/proto"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@@ -14,8 +15,10 @@ func main() {
|
||||
service.Version("latest"),
|
||||
)
|
||||
|
||||
h := handler.NewFunction()
|
||||
// Register handler
|
||||
pb.RegisterFunctionHandler(srv.Server(), handler.NewFunction())
|
||||
pb.RegisterFunctionHandler(srv.Server(), h)
|
||||
admin.RegisterAdminHandler(srv.Server(), h)
|
||||
|
||||
// Run service
|
||||
if err := srv.Run(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user