ADDED build pipeline changes #3

This commit is contained in:
Marek Lesko
2025-07-15 18:49:01 +00:00
parent 4351f41d31
commit 7782a8ce76
2 changed files with 10 additions and 7 deletions

3
Api/.gitignore vendored
View File

@@ -1,3 +1,4 @@
obj/ obj/
bin/ bin/
.vs/ .vs/
build/

View File

@@ -24,16 +24,18 @@ namespace Api
var app = builder.Build(); var app = builder.Build();
// Configure the HTTP request pipeline. // Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment()) // if (app.Environment.IsDevelopment())
{ // {
app.UseSwagger(); app.UseSwagger();
app.UseSwaggerUI(); app.UseSwaggerUI();
// }
if (!app.Environment.IsDevelopment())
{
app.UseHttpsRedirection();
} }
app.UseHttpsRedirection(); #app.UseAuthorization();
app.UseAuthorization();
app.MapControllers(); app.MapControllers();