Don't wrap collection of messages into Message

This commit is contained in:
Oleg Zhurakousky
2021-07-30 18:32:04 +02:00
parent 723f1b8180
commit 4b611ec4e2
2 changed files with 11 additions and 1 deletions

View File

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