Account and auth protobuf and client code

This commit is contained in:
2025-07-06 21:47:23 +08:00
parent 5757526ea5
commit bb2f88cc54
10 changed files with 400 additions and 0 deletions

View File

@ -17,6 +17,9 @@ builder.Services.AddAppRateLimiting();
builder.Services.AddAppAuthentication();
builder.Services.AddAppSwagger();
// Add gRPC services
builder.Services.AddGrpc();
// Add file storage
builder.Services.AddAppFileStorage(builder.Configuration);
@ -44,4 +47,8 @@ var tusDiskStore = app.Services.GetRequiredService<TusDiskStore>();
// Configure application middleware pipeline
app.ConfigureAppMiddleware(builder.Configuration, tusDiskStore);
// Map gRPC services
app.MapGrpcService<DysonNetwork.Sphere.Auth.AuthGrpcService>();
app.MapGrpcService<DysonNetwork.Sphere.Account.AccountGrpcService>();
app.Run();