fix templates and helpers
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
@@ -17,6 +17,7 @@ func New{{$ServiceName}}Endpoints() []*micro_api.Endpoint {
|
||||
var endpoints []*micro_api.Endpoint
|
||||
|
||||
{{- range .Service.Method}}
|
||||
{{- if not (contains (json (httpOption .)) "null") }}
|
||||
{{- if ne (httpVerb .) "" }}
|
||||
endpoint := µ_api.Endpoint{
|
||||
Name: "{{$ServiceName}}.{{.Name}}",
|
||||
@@ -36,6 +37,7 @@ func New{{$ServiceName}}Endpoints() []*micro_api.Endpoint {
|
||||
endpoints = append(endpoints, endpoint)
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
return endpoints
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user