Skip to content

Commit

Permalink
feat: add Method
Browse files Browse the repository at this point in the history
  • Loading branch information
fynntang committed Sep 1, 2023
1 parent 3f35812 commit 62923bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protoc-gen-go-http/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var httpTemplate = `
{{$svrName := .ServiceName}}
{{- range .MethodSets}}
const Route{{$svrType}}{{.OriginalName}} = "{{.Path}}" {{- if ne .OriginalComment ""}} {{.OriginalComment}} {{- end}}
const Route{{$svrType}}{{.OriginalName}} = "{{.Path}}" {{- if ne .OriginalComment ""}} {{.OriginalComment}} {{.Method}}{{- end}}
{{- end}}
type {{.ServiceType}}HTTPServer interface {
Expand Down

0 comments on commit 62923bf

Please sign in to comment.