How to use Swagger as Welcome Page of IAppBuilder in WebAPI
问题 I try to use Swagger with Microsoft WebAPI 2. For the moment, I've the following call in a method. appBuilder .ConfigureOAuth() .UseWebApi(configuration) .UseWelcomePage(); If I want to use Swagger, I must use this url "https://localhost:44300/swagger" which one works very well. I want my home page redirects to the url of my swagger, perhaps as follows but this sample doesn't works. appBuilder ... .UseWelcomePage("/swagger"); Any idea ? 回答1: I got this working how I wanted by adding a route