From 49e8545ae33544ea4af49cd4b47338d2a32b5f8b Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Wed, 21 Feb 2024 14:55:51 +0200 Subject: [PATCH] Allow all HTTP methods in Azure functions Fixes: #37065 --- .../azure/functions/resteasy/runtime/Function.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/extensions/azure-functions-http/runtime/src/main/java/io/quarkus/azure/functions/resteasy/runtime/Function.java b/extensions/azure-functions-http/runtime/src/main/java/io/quarkus/azure/functions/resteasy/runtime/Function.java index dde4d70e945c0..57a517fd026f0 100644 --- a/extensions/azure-functions-http/runtime/src/main/java/io/quarkus/azure/functions/resteasy/runtime/Function.java +++ b/extensions/azure-functions-http/runtime/src/main/java/io/quarkus/azure/functions/resteasy/runtime/Function.java @@ -16,10 +16,13 @@ public class Function extends BaseFunction { @FunctionName(QUARKUS_HTTP) public HttpResponseMessage run( - @HttpTrigger(name = "req", dataType = "binary", methods = { HttpMethod.GET, HttpMethod.HEAD, HttpMethod.POST, - HttpMethod.PUT, - HttpMethod.OPTIONS }, route = "{*path}", authLevel = AuthorizationLevel.ANONYMOUS) HttpRequestMessage> request, - final ExecutionContext context) { + @HttpTrigger( + name = "req", + dataType = "binary", + route = "{*path}", + authLevel = AuthorizationLevel.ANONYMOUS) + HttpRequestMessage> request, + ExecutionContext context) { return dispatch(request); }