try fix prod swagger

ref #131
This commit is contained in:
Collin M. Barrett 2018-06-07 14:19:48 -05:00
parent 9c45afc896
commit 70287819dc
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ private static void AddSwaggerGenCustom(this IServiceCollection services)
Title = "FilterLists API",
Version = "v1",
Description =
"FilterLists is the independent and comprehensive directory of all public filter and hosts lists for advertisements, trackers, malware, and annoyances.",
"A REST-ish API for FilterLists, the independent, comprehensive directory of all public filter and hosts lists for advertisements, trackers, malware, and annoyances.",
Contact = new Contact
{
Url = "https://github.com/collinbarrett/FilterLists/",

View file

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