try fixing swagger

ref #131
This commit is contained in:
Collin M. Barrett 2018-06-06 17:06:36 -05:00
parent a62622972a
commit 3e29ca47db
2 changed files with 2 additions and 2 deletions

2
.github/README.md vendored
View file

@ -9,7 +9,7 @@ FilterLists is the independent, comprehensive directory of filter and host lists
## Links
| Site | API |
| --------------------------------------------------- | ------------------------------------------------------ |
| [v3 (Live, Beta)](https://filterlists.com/) | [v1 (Live, Beta)](https://filterlists.com/api/v1/lists)|
| [v3 (Live, Beta)](https://filterlists.com/) | [v1 (Live, Beta)](https://filterlists.com/api/docs) |
| [v2 (Legacy, Frozen)](https://v2.filterlists.com/) | |
| [v1 (Legacy, Frozen)](https://v1.filterlists.com/) | |

View file

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