dotnet / beginner-series

.NET for beginner's videos, code, and links.
https://dot.net/videos
MIT License
272 stars 81 forks source link

Call app.UseSwaggerUI only in development environment #27

Closed tdykstra closed 5 months ago

tdykstra commented 5 months ago

See this internal issue

Edit this code to call SwaggerUI only in development.

Note that the file has this comment in line 1: “This file was auto-generated by ML.NET Model Builder.”