Package list golang-github-go-kit-kit / 411d3c2
examples/apigateway: fix bug in addsvc PathPrefix Peter Bourgon 4 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
103103 // HTTP handler, and just install it under a particular path prefix in
104104 // our router.
105105
106 r.PathPrefix("addsvc/").Handler(addsvc.MakeHTTPHandler(ctx, endpoints, tracer, logger))
106 r.PathPrefix("/addsvc").Handler(http.StripPrefix("/addsvc", addsvc.MakeHTTPHandler(ctx, endpoints, tracer, logger)))
107107 }
108108
109109 // stringsvc routes.