From df8eb3ada7a20477a295f70649f9a702577fd6cd Mon Sep 17 00:00:00 2001 From: Eduardo Pinto Date: Fri, 24 Jan 2025 13:27:39 +0000 Subject: [PATCH] add acl to doc snippets example --- .../src/main/java/com/example/api/ExampleGrpcEndpointImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/samples/doc-snippets/src/main/java/com/example/api/ExampleGrpcEndpointImpl.java b/samples/doc-snippets/src/main/java/com/example/api/ExampleGrpcEndpointImpl.java index 0c8538671..097f30dbf 100644 --- a/samples/doc-snippets/src/main/java/com/example/api/ExampleGrpcEndpointImpl.java +++ b/samples/doc-snippets/src/main/java/com/example/api/ExampleGrpcEndpointImpl.java @@ -1,6 +1,7 @@ package com.example.api; import akka.NotUsed; +import akka.javasdk.annotations.Acl; import akka.javasdk.annotations.GrpcEndpoint; import akka.stream.Materializer; import akka.stream.javadsl.Sink; @@ -12,6 +13,7 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; +@Acl(allow = @Acl.Matcher(principal = Acl.Principal.ALL)) @GrpcEndpoint public class ExampleGrpcEndpointImpl implements ExampleGrpcEndpoint {