Explorar el Código

调整

datasub12_previous
H Vs hace 1 año
padre
commit
79017d7a43
Se han modificado 1 ficheros con 7 adiciones y 5 borrados
  1. +7
    -5
      HealthMonitor.WebApi/Program.cs

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

@@ -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) =>


Cargando…
Cancelar
Guardar