I don't have rewriting settings in .Net Core yet, so I might be wrong, but I'm playing with this idea.
Install NuGet Package: Microsoft.AspNetCore.Rewrite
In your configuration method of your startup.cs file.
app.UseRewriter(new RewriteOptions() .AddRedirect(@"", "swagger/"));
source share