Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call SwaggerUI only in dev env #50

Merged
merged 1 commit into from
Apr 22, 2024
Merged

Conversation

tdykstra
Copy link
Contributor

@tdykstra tdykstra commented Apr 17, 2024

See internal issue

Call to app.Swagger included in if block to keep method calls in the same order and not have to create another if block.

@jongalloway please review.

@@ -111,15 +111,14 @@ Use Swagger to ensure that you have a self-documenting API, where the docs chang

if (app.Environment.IsDevelopment())
{
app.UseDeveloperExceptionPage();
app.UseDeveloperExceptionPage();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation seems a little off here?

@captainsafia
Copy link
Member

@jongalloway Can we get help merging this?

@jongalloway jongalloway merged commit a0ccfc8 into dotnet:main Apr 22, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants