Skip to content

Commit ee75841

Browse files
authored
Update Startup.cs
1 parent f8cffb8 commit ee75841

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Blog.Core/Startup.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env)
203203
app.UseSwaggerUI(c =>
204204
{
205205
c.SwaggerEndpoint("/swagger/v1/swagger.json", "ApiHelp V1");
206+
//c.RoutePrefix = "";//路径配置,设置为空,表示直接在根域名(localhost:8001)访问该文件
206207
});
207208
#endregion
208209
app.UseMiddleware<JwtTokenAuth>();

0 commit comments

Comments
 (0)