Add grpc reflection

This commit is contained in:
2025-10-26 11:38:18 +08:00
parent cdfc3f6571
commit 29c5971554
13 changed files with 23 additions and 34 deletions

View File

@@ -24,9 +24,7 @@ public static class ServiceCollectionExtensions
options.MaxReceiveMessageSize = 16 * 1024 * 1024; // 16MB
options.MaxSendMessageSize = 16 * 1024 * 1024; // 16MB
});
// Register gRPC reflection for service discovery
services.AddGrpc();
services.AddGrpcReflection();
services.AddControllers().AddJsonOptions(options =>
{