Remove unsupported bean from aws sample

This commit is contained in:
Oleg Zhurakousky
2021-07-30 19:08:45 +02:00
parent 41fba8b918
commit a088a53a6a

View File

@@ -21,14 +21,4 @@ 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;
};
}
}