Skip to content

Commit

Permalink
add reqq function
Browse files Browse the repository at this point in the history
  • Loading branch information
culmat committed Apr 15, 2024
1 parent 7432a21 commit e3ec17a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/main/java/com/baloise/azure/FunctionalOrgEndpoint.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,25 @@ Graph graph() {
return lazygraph;
}


@FunctionName("req")
public HttpResponseMessage req(
@HttpTrigger(
name = "req2",
methods = { HttpMethod.GET},
authLevel = AuthorizationLevel.ANONYMOUS,
route = "req/*"
)
HttpRequestMessage<Optional<String>> request,
final ExecutionContext context
) {
String[] path = request.getUri().getPath().split("/");
return request.createResponseBuilder(HttpStatus.OK)
.header("Content-Type","application/json; charset=UTF-8")
.body(Map.of("path", path)).build();
}


@FunctionName("V1")
public HttpResponseMessage v1(
@HttpTrigger(
Expand Down

0 comments on commit e3ec17a

Please sign in to comment.