Skip to content

Commit

Permalink
might as well add a catch for all patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
technicallyty committed Jan 15, 2025
1 parent 5573afa commit b1cea59
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions server/v2/api/grpcgateway/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,15 @@ func newHTTPAnnotationMapping() (map[string]string, error) {
if httpAnnotation := rule.GetPost(); httpAnnotation != "" {
annotationToQueryInputName[fixCatchAll(httpAnnotation)] = queryInputName
}
if httpAnnotation := rule.GetPut(); httpAnnotation != "" {
annotationToQueryInputName[fixCatchAll(httpAnnotation)] = queryInputName
}
if httpAnnotation := rule.GetPatch(); httpAnnotation != "" {
annotationToQueryInputName[fixCatchAll(httpAnnotation)] = queryInputName
}
if httpAnnotation := rule.GetDelete(); httpAnnotation != "" {
annotationToQueryInputName[fixCatchAll(httpAnnotation)] = queryInputName
}
}
}
}
Expand Down

0 comments on commit b1cea59

Please sign in to comment.