Use https redirection on non-debug builds

This commit is contained in:
jvyden 2022-05-20 22:11:53 -04:00
parent 33f344f200
commit dce683a58c
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
2 changed files with 8 additions and 2 deletions

View file

@ -68,6 +68,10 @@ public class ApiStartup
app.UseMiddleware<RequestLogMiddleware>();
#if !DEBUG
app.UseHttpsRedirection();
#endif
app.UseRouting();
app.UseEndpoints(endpoints => endpoints.MapControllers());
}