默认显示错误信息

This commit is contained in:
2021-03-12 17:54:17 +08:00
parent bcb79d7328
commit 4cf18f0b83

View File

@@ -95,12 +95,12 @@ namespace QRCodeService
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
{
//if (env.IsDevelopment())
//{
app.UseDeveloperExceptionPage();
app.UseSwagger();
app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "QRCodeService v1"));
}
//}
app.UseForwardedHeaders();
app.UseRouting();