Ver código fonte

调整

datasub12_previous
H Vs 1 ano atrás
pai
commit
79017d7a43
1 arquivos alterados com 7 adições e 5 exclusões
  1. +7
    -5
      HealthMonitor.WebApi/Program.cs

+ 7
- 5
HealthMonitor.WebApi/Program.cs Ver arquivo

@@ -236,13 +236,15 @@ namespace HealthMonitor.WebApi



//if (!app.Environment.IsDebugOrDevelop())
//{
// prefix = optConfigAppSettings.Value.NginxPrefix;
// if (string.IsNullOrWhiteSpace(prefix)) prefix = SERVICE_PREFIX;
//}
if (!app.Environment.IsDevelopment())
{
//prefix = optConfigAppSettings.Value.NginxPrefix;
//if (string.IsNullOrWhiteSpace(prefix)) prefix = SERVICE_PREFIX;
prefix = "hm";
}

// Enable middleware to serve generated Swagger as a JSON endpoint.

app.UseSwagger(c =>
{
c.PreSerializeFilters.Add((swagger, httpReq) =>


Carregando…
Cancelar
Salvar