This commit is contained in:
Michał Zieliski
2024-05-22 18:40:10 +02:00
parent 54c8844854
commit 25cf75e883
10 changed files with 61 additions and 301 deletions

View File

@@ -52,11 +52,6 @@ builder.Services.AddAuthentication(options =>
});
builder.Services.AddAuthentication();
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
builder.Services.AddSingleton(typeof(GoogleSheetsHelper));
builder.Services.AddSingleton(typeof(GoogleDriveHelper));
@@ -74,15 +69,6 @@ app.Use(async (context, next) =>
await next(context);
});
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
app.UseSwagger();
app.UseSwaggerUI();
}
// app.UseHttpsRedirection();
app.UseCors("CORSPolicy");
app.UseAuthentication();