mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-28 07:58:40 +00:00
Revert "Use https redirection on non-debug builds"
This reverts commit dce683a58c
.
This commit is contained in:
parent
dce683a58c
commit
8e2bd1da3d
2 changed files with 2 additions and 8 deletions
|
@ -68,10 +68,6 @@ public class ApiStartup
|
||||||
|
|
||||||
app.UseMiddleware<RequestLogMiddleware>();
|
app.UseMiddleware<RequestLogMiddleware>();
|
||||||
|
|
||||||
#if !DEBUG
|
|
||||||
app.UseHttpsRedirection();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
app.UseRouting();
|
app.UseRouting();
|
||||||
app.UseEndpoints(endpoints => endpoints.MapControllers());
|
app.UseEndpoints(endpoints => endpoints.MapControllers());
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,12 +56,10 @@ public class WebsiteStartup
|
||||||
|
|
||||||
app.UseMiddleware<RequestLogMiddleware>();
|
app.UseMiddleware<RequestLogMiddleware>();
|
||||||
|
|
||||||
#if !DEBUG
|
|
||||||
app.UseHttpsRedirection();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
app.UseRouting();
|
app.UseRouting();
|
||||||
|
|
||||||
app.UseStaticFiles();
|
app.UseStaticFiles();
|
||||||
|
|
||||||
app.UseEndpoints(endpoints => endpoints.MapControllers());
|
app.UseEndpoints(endpoints => endpoints.MapControllers());
|
||||||
app.UseEndpoints(endpoints => endpoints.MapRazorPages());
|
app.UseEndpoints(endpoints => endpoints.MapRazorPages());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue