try fix swagger.json url, tweak swagger meta

ref #131
This commit is contained in:
Collin Barrett 2018-06-06 17:12:34 -05:00
parent 1bd815d391
commit 97aa775e83
2 changed files with 7 additions and 3 deletions

View file

@ -27,10 +27,14 @@ private static void AddSwaggerGenCustom(this IServiceCollection services)
Version = "v1",
Description =
"FilterLists is the independent and comprehensive directory of all public filter and hosts lists for advertisements, trackers, malware, and annoyances.",
Contact = new Contact {Url = "https://github.com/collinbarrett/FilterLists/issues"},
Contact = new Contact
{
Url = "https://github.com/collinbarrett/FilterLists/",
Name = "FilterLists - GitHub"
},
License = new License
{
Name = "Use under MIT License",
Name = "MIT License",
Url = "https://github.com/collinbarrett/FilterLists/blob/master/LICENSE"
}
});

View file

@ -55,7 +55,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env)
app.UseSwagger();
app.UseSwaggerUI(c =>
{
c.SwaggerEndpoint("/swagger/v1/swagger.json", "FilterLists API V1");
c.SwaggerEndpoint("/api/swagger/v1/swagger.json", "FilterLists API V1");
c.RoutePrefix = "docs";
});
app.UseHttpsRedirection();