Skip to content

Commit 0644390

Browse files
committed
fix: attempt to fix swagger ui in app service
1 parent a6d68eb commit 0644390

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

AdminHubApi/Program.cs

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -97,22 +97,23 @@
9797
var app = builder.Build();
9898

9999
app.UseSwagger();
100+
app.UseSwaggerUI();
100101

101-
app.UseSwaggerUI(options =>
102-
{
103-
options.SwaggerEndpoint("/swagger/v1/swagger.json", "Web API V1");
104-
105-
if (app.Environment.IsDevelopment())
106-
{
107-
options.RoutePrefix = "swagger";
108-
}
109-
else
110-
{
111-
options.RoutePrefix = string.Empty;
112-
}
113-
});
114-
115-
app.UseSwagger();
102+
// app.UseSwaggerUI(options =>
103+
// {
104+
// options.SwaggerEndpoint("/swagger/v1/swagger.json", "Web API V1");
105+
//
106+
// if (app.Environment.IsDevelopment())
107+
// {
108+
// options.RoutePrefix = "swagger";
109+
// }
110+
// else
111+
// {
112+
// options.RoutePrefix = string.Empty;
113+
// }
114+
// });
115+
//
116+
// app.UseSwagger();
116117

117118
// // Configure the HTTP request pipeline.
118119
// if (app.Environment.IsDevelopment())

0 commit comments

Comments
 (0)