File tree Expand file tree Collapse file tree 1 file changed +16
-15
lines changed Expand file tree Collapse file tree 1 file changed +16
-15
lines changed Original file line number Diff line number Diff line change 97
97
var app = builder . Build ( ) ;
98
98
99
99
app . UseSwagger ( ) ;
100
+ app . UseSwaggerUI ( ) ;
100
101
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();
116
117
117
118
// // Configure the HTTP request pipeline.
118
119
// if (app.Environment.IsDevelopment())
You can’t perform that action at this time.
0 commit comments