From 7782a8ce762566d6fb8285e69759a745810c83a6 Mon Sep 17 00:00:00 2001 From: Marek Lesko Date: Tue, 15 Jul 2025 18:49:01 +0000 Subject: [PATCH] ADDED build pipeline changes #3 --- Api/.gitignore | 3 ++- Api/Program.cs | 14 ++++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Api/.gitignore b/Api/.gitignore index 6fb5e51..b7ccb59 100644 --- a/Api/.gitignore +++ b/Api/.gitignore @@ -1,3 +1,4 @@ obj/ bin/ -.vs/ \ No newline at end of file +.vs/ +build/ \ No newline at end of file diff --git a/Api/Program.cs b/Api/Program.cs index 4afb419..a385bdc 100644 --- a/Api/Program.cs +++ b/Api/Program.cs @@ -24,16 +24,18 @@ namespace Api var app = builder.Build(); // Configure the HTTP request pipeline. - if (app.Environment.IsDevelopment()) - { + // if (app.Environment.IsDevelopment()) + // { app.UseSwagger(); app.UseSwaggerUI(); + // } + + if (!app.Environment.IsDevelopment()) + { + app.UseHttpsRedirection(); } - app.UseHttpsRedirection(); - - app.UseAuthorization(); - + #app.UseAuthorization(); app.MapControllers();