✨ Account and auth protobuf and client code
This commit is contained in:
@ -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();
|
Reference in New Issue
Block a user