diff --git a/cmd/protoc-gen-go-http/httpTemplate.tpl b/cmd/protoc-gen-go-http/httpTemplate.tpl index f2de8e2..7908365 100644 --- a/cmd/protoc-gen-go-http/httpTemplate.tpl +++ b/cmd/protoc-gen-go-http/httpTemplate.tpl @@ -2,7 +2,7 @@ {{$svrName := .ServiceName}} {{- range .MethodSets}} -const Operation{{$svrType}}{{.OriginalName}} = "{{.Path}}" +const Operation{{$svrType}}{{.OriginalName}} = "/{{$svrName}}/{{.OriginalName}}" {{- end}} type {{.ServiceType}}HTTPServer interface {