Moved UseHttpsRedirection to else clause in Startup.cs Configure function
parent
8dccbf067d
commit
825f144e3a
|
@ -43,8 +43,10 @@ namespace QandA
|
||||||
app.UseSwagger();
|
app.UseSwagger();
|
||||||
app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "QandA v1"));
|
app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "QandA v1"));
|
||||||
}
|
}
|
||||||
|
else
|
||||||
app.UseHttpsRedirection();
|
{
|
||||||
|
app.UseHttpsRedirection();
|
||||||
|
}
|
||||||
|
|
||||||
app.UseRouting();
|
app.UseRouting();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue