Don't wrap collection of messages into Message

This commit is contained in:
Oleg Zhurakousky
2021-07-30 18:32:04 +02:00
parent 85a0b7be3b
commit 41fba8b918
2 changed files with 11 additions and 1 deletions

View File

@@ -21,4 +21,14 @@ public class FunctionConfiguration {
public Function<String, String> uppercase() {
return value -> value.toUpperCase();
}
@Bean
public Function<APIGatewayV2HTTPEvent, APIGatewayV2HTTPResponse> uppercaseApiGateway() {
return value -> {
APIGatewayV2HTTPResponse response = new APIGatewayV2HTTPResponse();
response.setStatusCode(404);
response.setBody("Resource not found");
return response;
};
}
}