Skip to content

Commit 1664eaa

Browse files
authored
Combined MapOpenAPI and MapScalar in same env condition
Line 501, moved app.MapOpenAPI() to same environment condition block for app.MapScalarApiReference()
1 parent 70123d0 commit 1664eaa

File tree

1 file changed

+0
-4
lines changed
  • aspnetcore/fundamentals/openapi/samples/9.x/WebMinOpenApi

1 file changed

+0
-4
lines changed

aspnetcore/fundamentals/openapi/samples/9.x/WebMinOpenApi/Program.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -386,10 +386,6 @@ public class Body {
386386
if (app.Environment.IsDevelopment())
387387
{
388388
app.MapOpenApi();
389-
}
390-
391-
if (app.Environment.IsDevelopment())
392-
{
393389
app.MapScalarApiReference();
394390
}
395391

0 commit comments

Comments
 (0)