public APIGatewayV2HTTPResponse handleRequest()

in auth-functions/src/main/java/com/auth/App.java [18:31]


    public APIGatewayV2HTTPResponse handleRequest(final Object input, final Context context) {
        try {
            HashMap<String, String> headers = new HashMap<>();
            headers.put("Content-Type", "application/json");
            return APIGatewayV2HTTPResponse.builder()
                    .withStatusCode(200)
                    .withHeaders(headers)
                    .withIsBase64Encoded(false)
                    .withBody(OBJECT_MAPPER.writeValueAsString(input))
                    .build();
        } catch (JsonProcessingException e) {
            throw new RuntimeException(e);
        }
    }