Skip to content

Commit a3bb88e

Browse files
Call AddEndpointsApiExplorer() in controllers Web API template (#36753)
- backport of #36752 to release/6.0-rc2 Co-authored-by: DamianEdwards <[email protected]>
1 parent a1ed65a commit a3bb88e

File tree

1 file changed

+1
-0
lines changed
  • src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp

1 file changed

+1
-0
lines changed

src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343

4444
builder.Services.AddControllers();
4545
#if (EnableOpenAPI)
46+
builder.Services.AddEndpointsApiExplorer();
4647
builder.Services.AddSwaggerGen(c =>
4748
{
4849
c.SwaggerDoc("v1", new() { Title = "Company.WebApplication1", Version = "v1" });

0 commit comments

Comments
 (0)