| Index: common/prpc/talk/helloworld/frontend/handler.go
|
| diff --git a/common/prpc/talk/helloworld/frontend/handler.go b/common/prpc/talk/helloworld/frontend/handler.go
|
| index 328157b5310c984a8e822d775392018e914d659a..8d92ef6dcb917053629e085816e12123735a86d1 100644
|
| --- a/common/prpc/talk/helloworld/frontend/handler.go
|
| +++ b/common/prpc/talk/helloworld/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 helloworld
|
|
|
| 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)
|
| }
|
|
|