| Index: common/prpc/talk/helloworld/frontend/prpc.go
|
| diff --git a/common/prpc/talk/helloworld/frontend/prpc.go b/common/prpc/talk/helloworld/frontend/prpc.go
|
| index a5904d9c8bbcf84497e966b1e7f479c4a8de9843..b6f57e44ca29d1f6ae5fb026d2faf2641ea97f45 100644
|
| --- a/common/prpc/talk/helloworld/frontend/prpc.go
|
| +++ b/common/prpc/talk/helloworld/frontend/prpc.go
|
| @@ -5,18 +5,16 @@
|
| package helloworld
|
|
|
| import (
|
| - "github.com/julienschmidt/httprouter"
|
| -
|
| "github.com/luci/luci-go/server/discovery"
|
| - "github.com/luci/luci-go/server/middleware"
|
| "github.com/luci/luci-go/server/prpc"
|
| + "github.com/luci/luci-go/server/router"
|
|
|
| "github.com/luci/luci-go/common/prpc/talk/helloworld/proto"
|
| )
|
|
|
| -func InstallAPIRoutes(router *httprouter.Router, base middleware.Base) {
|
| +func InstallAPIRoutes(router *router.Router, handlers []router.Handler) {
|
| server := &prpc.Server{}
|
| helloworld.RegisterGreeterServer(server, &greeterService{})
|
| discovery.Enable(server)
|
| - server.InstallHandlers(router, base)
|
| + server.InstallHandlers(router, handlers)
|
| }
|
|
|