ADDED build pipeline changes #3
This commit is contained in:
3
Api/.gitignore
vendored
3
Api/.gitignore
vendored
@@ -1,3 +1,4 @@
|
||||
obj/
|
||||
bin/
|
||||
.vs/
|
||||
.vs/
|
||||
build/
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user