Skip to content

Commit

Permalink
add req function
Browse files Browse the repository at this point in the history
  • Loading branch information
culmat committed Apr 15, 2024
1 parent e3ec17a commit f58de92
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/com/baloise/azure/FunctionalOrgEndpoint.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,16 @@ public HttpResponseMessage req(
name = "req2",
methods = { HttpMethod.GET},
authLevel = AuthorizationLevel.ANONYMOUS,
route = "req/*"
route = "req/{*inPath}"
)
HttpRequestMessage<Optional<String>> request,
@BindingName("inPath") String inPath,
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();
.body(Map.of("path", path, "inPath", inPath)).build();
}


Expand Down

0 comments on commit f58de92

Please sign in to comment.