mirror of
https://github.com/dotnet/intro-to-dotnet-web-dev.git
synced 2025-12-06 05:32:03 +01:00
Update README.md
Contributes to [this internal issue](https://github.com/dotnet/aspnetcore-internal/issues/4522#issuecomment-2078104865) and is required to be obvious in query results.
This commit is contained in:
parent
a0ccfc84da
commit
6bc6c5a22d
|
|
@ -113,7 +113,7 @@ Use Swagger to ensure that you have a self-documenting API, where the docs chang
|
|||
{
|
||||
app.UseDeveloperExceptionPage();
|
||||
app.UseSwagger();
|
||||
app.UseSwaggerUI(c =>
|
||||
app.UseSwaggerUI(c => // UseSwaggerUI Protected by if (env.IsDevelopment())
|
||||
{
|
||||
c.SwaggerEndpoint("/swagger/v1/swagger.json", "PizzaStore API V1");
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue