Skip to content

Commit 5d0cd50

Browse files
authored
2 parents 98f5786 + bc74f7c commit 5d0cd50

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Sample .NET Core reference application, powered by Microsoft, based on a simplif
88

99
![](img/eshop-webmvc-app-screenshot.png)
1010

11-
## Azure DevOps - Build Status
11+
## Azure DevOps - Build Status
1212

1313
| Image | Status | Image | Status |
1414
| ------------- | ------------- | ------------- | ------------- |

src/Services/Ordering/Ordering.API/Startup.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,14 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerF
9191

9292
app.UseCors("CorsPolicy");
9393

94+
app.UseSwagger()
95+
.UseSwaggerUI(c =>
96+
{
97+
c.SwaggerEndpoint($"{ (!string.IsNullOrEmpty(pathBase) ? pathBase : string.Empty) }/swagger/v1/swagger.json", "Ordering.API V1");
98+
c.OAuthClientId("orderingswaggerui");
99+
c.OAuthAppName("Ordering Swagger UI");
100+
});
101+
94102
app.UseRouting();
95103
ConfigureAuth(app);
96104

@@ -124,14 +132,6 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerF
124132
});
125133
});
126134

127-
app.UseSwagger()
128-
.UseSwaggerUI(c =>
129-
{
130-
c.SwaggerEndpoint($"{ (!string.IsNullOrEmpty(pathBase) ? pathBase : string.Empty) }/swagger/v1/swagger.json", "Ordering.API V1");
131-
c.OAuthClientId("orderingswaggerui");
132-
c.OAuthAppName("Ordering Swagger UI");
133-
});
134-
135135
ConfigureEventBus(app);
136136
}
137137

0 commit comments

Comments
 (0)