Merge pull request #1222 from dotnet-architecture/fix/1181

fixed https://github.com/dotnet-architecture/eShopOnContainers/issues…
This commit is contained in:
Miguel Veloso 2020-01-27 14:29:34 +01:00 committed by GitHub
commit 5d0cd5007c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 9 deletions

View File

@ -8,7 +8,7 @@ Sample .NET Core reference application, powered by Microsoft, based on a simplif
![](img/eshop-webmvc-app-screenshot.png)
## Azure DevOps - Build Status
## Azure DevOps - Build Status
| Image | Status | Image | Status |
| ------------- | ------------- | ------------- | ------------- |

View File

@ -91,6 +91,14 @@
app.UseCors("CorsPolicy");
app.UseSwagger()
.UseSwaggerUI(c =>
{
c.SwaggerEndpoint($"{ (!string.IsNullOrEmpty(pathBase) ? pathBase : string.Empty) }/swagger/v1/swagger.json", "Ordering.API V1");
c.OAuthClientId("orderingswaggerui");
c.OAuthAppName("Ordering Swagger UI");
});
app.UseRouting();
ConfigureAuth(app);
@ -124,14 +132,6 @@
});
});
app.UseSwagger()
.UseSwaggerUI(c =>
{
c.SwaggerEndpoint($"{ (!string.IsNullOrEmpty(pathBase) ? pathBase : string.Empty) }/swagger/v1/swagger.json", "Ordering.API V1");
c.OAuthClientId("orderingswaggerui");
c.OAuthAppName("Ordering Swagger UI");
});
ConfigureEventBus(app);
}