resolving the rebase errors

This commit is contained in:
ashutosh.nehete 2025-08-11 16:54:47 +05:30
parent 0ba2874041
commit 37c91d4432

View File

@ -202,6 +202,13 @@ builder.Services.AddScoped<ExpenseCache>();
// Singleton services (one instance for the app's lifetime)
builder.Services.AddSingleton<ILoggingService, LoggingService>();
string path = Path.Combine(builder.Environment.ContentRootPath, "FireBase", "service-account.json");
FirebaseApp.Create(new AppOptions()
{
Credential = GoogleCredential.FromFile(path),
});
#endregion
#region Web Server (Kestrel)
@ -213,20 +220,6 @@ builder.WebHost.ConfigureKestrel(options =>
#endregion
string path = Path.Combine(builder.Environment.ContentRootPath, "FireBase", "service-account.json");
FirebaseApp.Create(new AppOptions()
{
Credential = GoogleCredential.FromFile(path),
});
string path = Path.Combine(builder.Environment.ContentRootPath, "FireBase", "service-account.json");
FirebaseApp.Create(new AppOptions()
{
Credential = GoogleCredential.FromFile(path),
});
var app = builder.Build();
#region ===================== HTTP Request Pipeline Configuration =====================