Skip to content

Commit

Permalink
Allow all HTTP methods in Azure functions
Browse files Browse the repository at this point in the history
Fixes: #37065
  • Loading branch information
geoand committed Feb 21, 2024
1 parent 6c7c173 commit 49e8545
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Optional<String>> request,
final ExecutionContext context) {
@HttpTrigger(
name = "req",
dataType = "binary",
route = "{*path}",
authLevel = AuthorizationLevel.ANONYMOUS)
HttpRequestMessage<Optional<String>> request,
ExecutionContext context) {

return dispatch(request);
}
Expand Down

0 comments on commit 49e8545

Please sign in to comment.