mirror of
https://github.com/dotnet/intro-to-dotnet-web-dev.git
synced 2025-12-06 05:32:03 +01:00
commit
38939e01e0
|
|
@ -15,7 +15,7 @@ if (app.Environment.IsDevelopment())
|
||||||
{
|
{
|
||||||
app.UseDeveloperExceptionPage();
|
app.UseDeveloperExceptionPage();
|
||||||
app.UseSwagger();
|
app.UseSwagger();
|
||||||
app.UseSwaggerUI(c =>
|
app.UseSwaggerUI(c => // UseSwaggerUI Protected by if (env.IsDevelopment())
|
||||||
{
|
{
|
||||||
c.SwaggerEndpoint("/swagger/v1/swagger.json", "PizzaStore API V1");
|
c.SwaggerEndpoint("/swagger/v1/swagger.json", "PizzaStore API V1");
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue