fix(apigateway): treat ANY method as wildcard for concrete HTTP methods (#710) (#750)

This commit is contained in:
Hector Ventura authored and GitHub committed 2026-05-08 23:38:36 -05:00
1 parent 9b68bd0377
commit 15c9f58aae
2 files changed
+207

No files matched your search

@@ -241,6 +241,9 @@ public class ApiGatewayExecuteController {
}
MethodConfig method = matched.getResourceMethods().get(httpMethod.toUpperCase());
if (method == null) {
method = matched.getResourceMethods().get("ANY");
}
if (method == null) {
return Response.status(405)
.entity(jsonMessage("Method Not Allowed"))