| Index: common/prpc/talk/buildbot/frontend/handler.go
|
| diff --git a/common/prpc/talk/buildbot/frontend/handler.go b/common/prpc/talk/buildbot/frontend/handler.go
|
| index cf4b22b55497285ddbd81cea365de4252cf007f9..c5100fb4952459f9a4717ef2cd1a1d9f6327ed5f 100644
|
| --- a/common/prpc/talk/buildbot/frontend/handler.go
|
| +++ b/common/prpc/talk/buildbot/frontend/handler.go
|
| @@ -1,22 +1,21 @@
|
| // Copyright 2015 The LUCI Authors. All rights reserved.
|
| // Use of this source code is governed under the Apache License, Version 2.0
|
| // that can be found in the LICENSE file.
|
|
|
| package buildbot
|
|
|
| import (
|
| "net/http"
|
|
|
| - "github.com/julienschmidt/httprouter"
|
| -
|
| "github.com/luci/luci-go/appengine/gaemiddleware"
|
| + "github.com/luci/luci-go/server/router"
|
| )
|
|
|
| func init() {
|
| - router := httprouter.New()
|
| - gaemiddleware.InstallHandlers(router, gaemiddleware.BaseProd)
|
| -
|
| - InstallAPIRoutes(router, gaemiddleware.BaseProd)
|
| + r := router.New()
|
| + basemw := gaemiddleware.BaseProd()
|
|
|
| - http.DefaultServeMux.Handle("/", router)
|
| + gaemiddleware.InstallHandlers(r, basemw)
|
| + InstallAPIRoutes(r, basemw)
|
| + http.DefaultServeMux.Handle("/", r)
|
| }
|
|
|