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